This package has been deprecated

Author message:

This project has been renamed to `@randy.tarampi/pseudolocalize`. Install using `@randy.tarampi/pseudolocalize` instead.

pseudolocalize.woof

0.0.1 • Public • Published

Text-to-ʕ•ᴥ•ʔ translations

Build Status Coverage Status Dependency Status Backlog Ready In Progress

Or, otherwise user defined pseudolocalizations...

Usage

let Pseudolocalizer = require("pseudolocalize.woof");
 
let pseudolocalizer = new Pseudolocalizer();
console.log(pseudolocalizer.pseudolocalize("")); // "ʕつ•ᴥ•ʔつ"
console.log(pseudolocalizer.pseudolocalize("woof")); // "ʕつ•w•ʔつ"
console.log(pseudolocalizer.pseudolocalize("woof woof woof woof woof")); // "ʕつ•woof woof woof woof woof•ʔつ"
 
let open = "\uFF5F";
let close = "\uFF60";
 
let CJKPadding = "纬横糸씨"; // From "纬", "横糸", and "씨"
let CJKPseudolocalizer = new Pseudolocalizer(0.8, open, close, CJKPadding, CJKPadding);
console.log(CJKPseudolocalizer.pseudolocalize("woof")); // "⦅纬w纬⦆"
console.log(CJKPseudolocalizer.pseudolocalize("woof woof woof woof woof")); // "⦅纬w纬⦆"
 
let LCGPadding = "sгυ"; // From "subtegmine", "гав", and "υφάδι"
let LCGPseudolocalizer = new Pseudolocalizer(1.2, open, close, LCGPadding, LCGPadding);
console.log(LCGPseudolocalizer.pseudolocalize("woof")); // "⦅sws⦆"
console.log(LCGPseudolocalizer.pseudolocalize("woof woof woof woof woof")); // "⦅swoof woof woof woof woofs⦆"
 
let AFBPadding = "نپব"; // From "نسيج" and "پود" and "বুনন"
let AFBPseudolocalizer = new Pseudolocalizer(1.5, open, close, AFBPadding, AFBPadding);
console.log(AFBPseudolocalizer.pseudolocalize("woof")); // "⦅نwن⦆"
console.log(AFBPseudolocalizer.pseudolocalize("woof woof woof woof woof")); // "⦅نپবنپwoof woof woof woof woofنپবنپ⦆"
 

Package Sidebar

Install

npm i pseudolocalize.woof

Weekly Downloads

3

Version

0.0.1

License

none

Last publish

Collaborators

  • randy.tarampi