Coder Social home page Coder Social logo

Comments (4)

scossu avatar scossu commented on July 24, 2024 1

Closing this as it's related to a Korean issue that no longer exists. #72 should cover the table parsing issue.

from scriptshifter.

olovy avatar olovy commented on July 24, 2024

Hi,

The problem seems to be these lines containing invalid unicode escape sequences (e.g. \u030)

17104    - "\uD5C8\uB4DD\uB7C9": "Ho\u0306 Tu\u030ng-nyang_"
33923    - "\uAC1C\uBCF": "kaebok_"
36281    - "Ho\u0306 Tu\u030ng-nyang": "\uD5C8\uB4DD\uB7C9_"
63564    - "kaebok": "\uAC1C\uBCF_"

In Libris we are are investigating using using your tables converted [1] to ICU transform rules [2] for automatic romanization.
In addition to to our Libris-specific tables [3].
[1] https://github.com/libris/librisxl/tree/develop/whelk-core/src/main/resources/romanizer/loc
[2] https://unicode-org.github.io/icu/userguide/transforms/general/rules.html
[3] https://github.com/libris/librisxl/tree/develop/whelk-core/src/main/resources/romanizer

from scriptshifter.

scossu avatar scossu commented on July 24, 2024

I see that the \u030 in Tu\u030ng is not a valid Unicode sequence. I defer to a Korean specialist as to which symbol is meant to be placed there.

Note that Korean transliteration & transcription will be completely overhauled in Phase 2 (current), and the current table won't be used. However, if the current table is of any use for the time being, it may be worth fixing it.

from scriptshifter.

scossu avatar scossu commented on July 24, 2024

This highlights a separate problem: each table is only read (and validated) when transliteration is requested for the first time in the application life cycle for that particular table. This is done to reduce application startup time (especially with the huge Korean table), however it also hides problems like this one, when a table contains encoding errors, which are only caught when transliteration is requested.

I think the best way to resolve this is to have automated tests built into a CI pipeline rather than forcing a read of all tables on startup.

from scriptshifter.

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.