npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

t13n

v0.3.1

Published

Transliteration library from Cyrilic languages

Downloads

41

Readme

T13N: Transliteration Made Right

Welcome the the T13N - a transliteration library for Cyrilic languages written for Javascript applications.

What is it for?

Transliteration can be made for different purposes, such as:

  • Friendly URLs for Content Management Systems that publish content using Cyrilic languages;
  • Longer SMS;
  • Passport names;
  • Text interpretations for languages that has a dedicated alternative latin alphabets etc.

Status

IN DEVELOPMENT / PHASE 0 PREVIEW

Implementation Checklist

Implementation is split on so-called "phases" for better prioritization.

Phase Zero: Belarusian-To-Latin (BGN/PCGN 1979)

  • [x] Define a basic set of rules for each letter;
  • [x] Define a set of flags calculated for each letter for better context;g
  • [x] Define alternative variations for some letters that require it (like 'г');
  • [x] Support the most basic in-between-words separators (dash, underscore) for URL creation support and resolve "similar" symbols ("’" into "'");
  • [x] Ignore already available latin symbols and digits;
  • [x] Extend configurations via settings;
  • [x] Pack everything as v0.1

Phase One: Other Belarusian-To-Latin variations ("Latinka", ICAO, ISO 9)

  • [x] Switch to Typescript;
  • [x] Schematize a language JSON;
  • [x] Reorganize code to support other variations of one language;
  • [x] Add Belarusian Latin alphabet ("Łacinka");
  • [ ] Add ICAO standard;
  • [x] Add ISO 9 standard;

Phase Two: Ukrainian-To-Latin

  • [ ] Reorganize code to support multiple languages;
  • [ ] Add Ukrainian alphabet and transliteration rules;

Phase Three: Russian-To-Latin

  • [ ] Add Russian alphabet and transliteration rules.

(Other languages to be supported later on)

Ruleset & Dictionary

Every transformation rule is explicit and described in a so-called Ruleset It's a compilation of rule that explains transliteration behavior of the script. It may be compact and descriptive at the same time, depending on needs.

A result of Ruleset compilation is a Dictionary, that's used for pre-processing analysis and later transliteration.

There are three types of Rules which can possibly be used:

| Rule Type | Description | | :-------: | ------------------------------------------------------------------------------------------------------------------------------------------ | | L | Describing a rule for a letter that should be altered on a Latin manner | | S | Every special symbol that should be kept as-is or transformed / corrected | | R | There are some common sets of characters (like latin letters or digits) that described one after one and should be labeled in the same way |