Giter VIP home page Giter VIP logo

Comments (5)

BillMeyerRSA avatar BillMeyerRSA commented on June 19, 2024 1

That would be helpful. It might be problematic at times with combining diacritical when using e.g. sh for SHIN or tz for TSADI - two letter.

from hebrew-transliteration.

asherlporetz avatar asherlporetz commented on June 19, 2024

Also for STRESS_MARKER, maybe add a field to specify not to add the mark if it's at the expected/default location which is the last syllable. "always": false, for the default. "always": true, for the current behavior.

from hebrew-transliteration.

charlesLoder avatar charlesLoder commented on June 19, 2024

Thanks for the ideas! I recently had a new addition to my family so work on this project has been slowed.

Is it possible to overload DAGESH_CHAZAQ to accept a character, like a combining circumflex for example. And it will be applied to any dagesh forte (but not lene) and to mappiq He as well. Thank you.

That could be done.

As an exmple:

transliterate("שַׁבָּת", { DAGESH_CHAZAQ: "̂" }) ;

// šab̂āt

If that's not what you're suggesting, please put a sample.


Also for STRESS_MARKER, maybe add a field to specify not to add the mark if it's at the expected/default location which is the last syllable. "always": false, for the default. "always": true, for the current behavior.

Is this what you're suggesting:

transliterate("שַׁבָּת אֶרֶץ",  { STRESS_MARKER : {
  location:'after-vowel', 
  mark: '\u0301',
  always: false
});

// šabbāt ʾéreṣ

from hebrew-transliteration.

asherlporetz avatar asherlporetz commented on June 19, 2024

@charlesLoder exactly what I was trying to convey. Thank you.

from hebrew-transliteration.

charlesLoder avatar charlesLoder commented on June 19, 2024

That would be helpful. It might be problematic at times with combining diacritical when using e.g. sh for SHIN or tz for TSADI - two letter.

That's a good point, but unfortunately unavoidable.

For the SBL Simple schema, ensuring that a shin/tsadi with a dagesh chazaq is doubled, requires using an additional feature.

  ADDITIONAL_FEATURES: [
    {
      FEATURE: "cluster",
      HEBREW: "\u{05E9}\u{05C1}\u{05BC}",
      TRANSLITERATION: "sh"
    },
    {
      FEATURE: "cluster",
      HEBREW: "\u{05E6}\u{05BC}",
      TRANSLITERATION: "ts"
    }
  ],

So if a user wanted to use an acute accent as a dagesh marker and use a digraph for shin/tsadi, it would have to look something like:

  DAGESH_CHAZAQ: "\u0301",
  ADDITIONAL_FEATURES: [
    {
      FEATURE: "cluster",
      HEBREW: "\u{05E9}\u{05C1}\u{05BC}",
      TRANSLITERATION: "śh" // or whatever
    },
    {
      FEATURE: "cluster",
      HEBREW: "\u{05E6}\u{05BC}",
      TRANSLITERATION: "tś" // or whatever
    }
  ],

That is some duplication of work, but a schema assumes a one-to-one correspondence between Hebrew and transliteration.

from hebrew-transliteration.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.