Menu

#1193 Convert full-width Arabic numbers to half-width when inserting a fuzzy match

6.2
open-fixed
nobody
None
5
2026-07-17
2016-03-16
Jabber B
No

Japanese texts sometimes contain double byte Arabic numbers such as (0123456789).
It would be really helpful if OmegaT recognized these numbers as 'numbers' thereby converting them according to the number in the source text when inserting a fuzzy match. This would be very useful when translation from Japanese to English (or any other language that uses single byte characters).

To illustrate this, here is an example
Let's say we have a source text and a fuzzy match as follows:

Source text
これは例文9です。 <-Notice the 9 here is double-byte

Fuzzy match pair
これは例文8です。 <- Notice the 8 here is single-byte
This is a sample sentence 8.

I want OmegaT to recognize the 9 in the source text as a number and insert the fuzzy match by converting 9(double byte) to a 9 (single byte).
"This is a sample sentence 9."

Discussion

  • Jean-Christophe Helary

    You can add the modern and traditional han characters to that list too.

     
    • Jean-Christophe Helary

      Has this request been taken into account ?
      Plenty of Japanese texts use 一 二 三 四 etc.

       
  • Aaron Madlon-Kay

    • summary: Convert double-byte Arabic numbers to single-byte when inserting a fuzzy match --> Convert full-width Arabic numbers to half-width when inserting a fuzzy match
     
  • Aaron Madlon-Kay

    You say "double-byte" but that is a misnomer unless we are talking about legacy encodings like Shift-JIS.

     
    • Jabber B

      Jabber B - 2016-03-17

      Yes, I meant full-width. Apologies for the confusion.

       
  • Hiroshi Miura

    Hiroshi Miura - 2026-07-16
    • Group: future --> 6.2
     
  • Hiroshi Miura

    Hiroshi Miura - 2026-07-16

    zs-stpa raised the implementation
    https://github.com/omegat-org/omegat/pull/2111

     
  • Hiroshi Miura

    Hiroshi Miura - 2026-07-16
    • status: open --> open-fixed
     
  • Hiroshi Miura

    Hiroshi Miura - 2026-07-16

    Pull Request merged into master for 6.2 development

     

Log in to post a comment.

Monday.com Logo