Skip to content

support Japanese Kana#1

Open
Luci6fuge wants to merge 2 commits into
dj1yfk:masterfrom
Luci6fuge:kana_support
Open

support Japanese Kana#1
Luci6fuge wants to merge 2 commits into
dj1yfk:masterfrom
Luci6fuge:kana_support

Conversation

@Luci6fuge

Copy link
Copy Markdown
Contributor

Hi Fabian,

I wrote an ugly patch for supporting Japanese Kana.
Please take a look.

The fuction utf8_to_ucs4() looks ugly.
I wrote it years ago, but it worked fine then.

@dj1yfk

dj1yfk commented Jun 6, 2022

Copy link
Copy Markdown
Owner

Thanks! Please allow me a few days to check the changes in detail. I am currently a little busy with other things but I won't forget it.

Comment thread ebook2cw.c
else if (cw->encoding == UTF8) {
/* Character may be 1-byte ASCII or 2-byte UTF8 */
if (!(c & 128)) { /* MSB = 0 -> 7bit ASCII */
if(c < sizeof(iso8859)/sizeof(iso8859[0])) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, this line is wrong. It might be

if(c < 128) {

@Luci6fuge

Copy link
Copy Markdown
Contributor Author

Of course, no rush.

By the way, your coding style is strict standard C, mine is polluted by C++.
Please feel free to change it according to your preference.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants