Coder Social home page Coder Social logo

Korean: Name test failures about scriptshifter HOT 6 CLOSED

scossu avatar scossu commented on July 24, 2024
Korean: Name test failures

from scriptshifter.

Comments (6)

scossu avatar scossu commented on July 24, 2024

Looking at this error list I can't figure out if there is a number of logical errors or if it's a matter of adding some exception rules.

This one stands out as a possible error in the test string:

- Ŏ Yun-jŏk
?  ^
+ Ŏ,Yun-jŏk
?  ^
 : S2R transliteration error for korean_names!
Original: 어윤적

I haven't seen the comma notation elsewhere. Was that intended?

from scriptshifter.

hyoungl avatar hyoungl commented on July 24, 2024

It is actually a very simple logic.
Func NameRomanizer() checks if there is a comma or a center dot.
If yes, it separates strings by the comma or the center dot and romanizes each name separately: Func BatchRom()
If no, it just romanizes one name: Func KorNameRom20()

from scriptshifter.

hyoungl avatar hyoungl commented on July 24, 2024

The notation you mentioned is for a different situation, where cataloging rules (not romanization rules) require a comma between the last name and the first name. This function should not turn on globally, because it applies only to certain fields like 100, 600, 700, etc.

from scriptshifter.

scossu avatar scossu commented on July 24, 2024

Right, I was referring to the comma in the result rather than in the source.

So, the resolution for Ŏ,Yun-jŏk would be to replace the comma in the expected result with a space?

If you think that an extra option may be necessary for adding a comma in specific fields, I can add it. I tried to avoid per-script options so far, but if it's necessary, I'll add it.

from scriptshifter.

hyoungl avatar hyoungl commented on July 24, 2024

Basically, there should not be a comma between the first name and the last name.
The logic was, romanization with no comma (a comma never occurs in Hangul script anyway).
If the Hangul script is in the field 100, 600, 700, or 800, then add a comma following the cataloging practice.

from scriptshifter.

scossu avatar scossu commented on July 24, 2024

I added an option to specify the MARC field for Korean names. If the value is one of those you indicate, the Romanized text will add a comma after the last name.

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.