https://bugs.documentfoundation.org/show_bug.cgi?id=147054
Eike Rathke <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #11 from Eike Rathke <[email protected]> --- (In reply to Kevin Suo from comment #3) > Could someone give me some more code information on how to omit the ONE for > numbers 10 to 19 only, for Chinese NatNum4, while not affecting other number > ranges? > I guess its in /core/i18npool/source/nativenumber/nativenumbersupplier.cxx Doesn't that already work if you add NUMBER_OMIT_ONE_1 to the NumberChar_Lower_zh entry in natnum4[]? i.e. if in AsciiToNative_numberMaker() multiChar_index is 0 the native 1 will be omitted? But maybe I misunderstood from a short glance. If that doesn't work, then you may have to insert another #define NUMBER_OMIT_ONE_TENTHS (1 << 2) (or whatever name) and for the other following defines shift them by one more place and change #define NUMBER_OMIT_ONE_CHECK(bit) (1 << (2 + bit)) to #define NUMBER_OMIT_ONE_CHECK(bit) (1 << (3 + bit)) and in AsciiToNative_numberMaker() around the NUMBER_OMIT_ONE_CHECK(multiChar_index) condition additionally check if NUMBER_OMIT_ONE_TENTHS is set and if so and begin==0 then evaluate str[begin] and str[begin+1] (if not past end) if they form a "1x" that exactly is the input string. Just an idea, don't know if that actually fits. > But if I add anything for > NumberChar_Lower_zh the build may fail. Fail in what sense? -- You are receiving this mail because: You are the assignee for the bug.
