03-25-2019, 08:02 AM | #76 | |
Guru
Posts: 873
Karma: 252902
Join Date: Jun 2016
Device: Kobo
|
Quote:
The only way out is to not use kepub. At all. When creating kepub, Kobo did not think about other typography, and about other languages used. Just idiocy. Last edited by Semwize; 03-25-2019 at 08:07 AM. |
|
03-25-2019, 11:10 AM | #77 |
Bibliophagist
Posts: 35,464
Karma: 145525534
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
It would be more that a bit difficult to handle epubs using Japanese typography with the RMSDK renderer. Both renderers used have some issues but nothing that is what I would call a show stopper.
|
Advert | |
|
03-25-2019, 12:30 PM | #78 | |
Enthusiast
Posts: 36
Karma: 10
Join Date: Mar 2019
Device: Kobo Clara HD
|
Quote:
en-space is a fix length space non-breaking space is not ( at least after an en-dash) |
|
03-25-2019, 12:36 PM | #79 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
I know you would prefer to use kepub but did you actually test whether all the problems disappear if you use epub? Is it possible you could post a 1-page test epub containing the kind of HTML you see when you buy a retail Hungarian book with a lot of dialogue? I'm having difficulty understanding whether your problems are with the original epub or with a manually edited version. There's not much likelihood of successfully hacking KTE to auto-edit books on-the fly if no-one knows what the original HTML looks like. |
|
03-25-2019, 01:22 PM | #80 |
Enthusiast
Posts: 36
Karma: 10
Join Date: Mar 2019
Device: Kobo Clara HD
|
Font used:
I made a trial and en-space seems working and keeps the length as I see .(and the default built in font shows a space not any replacement char) Hyphenation: For hyphenation i found out the following process: It is installed long time ago in my Calibre the "Hyphenate this" plugin, with Hungarian hyphenation dictionary. It does the job well (on epub and on azw). So first hyphenate my epub, after sending it to KOBO (KTE, kepub) and it works koboSpans algorithm: Thank you the code . I will make some test with it I just wanted starting using kepub... Its a good challenge :-) |
Advert | |
|
03-25-2019, 07:21 PM | #81 | |
Enthusiast
Posts: 36
Karma: 10
Join Date: Mar 2019
Device: Kobo Clara HD
|
Quote:
and is it possible to change my p.center { display: block; text-align: center; margin-top: 0; text-indent: 0; line-height: 130%; widows: 2; orphans: 2; } to that only with the same way? p.center * { display: block; text-align: center !important; margin-top: 0; text-indent: 0; line-height: 130%; widows: 2; orphans: 2; } adding the star and the !important to the existing tags thank you |
|
03-25-2019, 09:49 PM | #82 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
Code:
p.center { text-align: center !important; } |
|
03-26-2019, 03:25 AM | #83 | |
Enthusiast
Posts: 36
Karma: 10
Join Date: Mar 2019
Device: Kobo Clara HD
|
Quote:
during the time I have found that the kobo_extra_DEVICE.css could be in the plugin directory as well As I saw each KOBO should have different name convention in this file. How should I name the file for Clara _CLARAHD ? Or just using the _GLOHD |
|
03-26-2019, 05:57 AM | #84 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
The KoboTouchExtended driver extends the function of the KoboTouch driver. In this case, it can copy the file from elsewhere and put it on the device. As you discovered, it looks for a file with the device name added to it. But, it looks like that part hasn't been updated for a while as it doesn't have the Aura ONE or later defined. It should be OK just to use "kobo_extra.css" in the plugin directory or put it on the device. |
|
03-31-2019, 07:25 AM | #85 | |
Enthusiast
Posts: 36
Karma: 10
Join Date: Mar 2019
Device: Kobo Clara HD
|
Quote:
this method above is ok, until the text do not have any direct formatting tag inside the sentence. for example: <i>, or <b> or even a <br/> what is newline, and so on. Somehow the procedure is handling those tags separated, and puts spans around them. I think this is a "calibre" behavior. It makes class from any single <i>... tags a <i span class="calibrexx"... and that generates the above mentioned code Do you know any bypass code for that to insert into the kte somewhere? For example change the <i> to a @lti@gt , process the "spanning" and change back to the original. So the sentence would be kept, and not split with spans. the best would be bypass any "calibre-ish" convert, just let the epub as it is, and send it to the device "kepub-ized"... thank you Last edited by Gorcsev; 03-31-2019 at 11:20 AM. |
|
04-01-2019, 08:45 AM | #86 | |
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
The KTE plugin honours that decision and so does the one-line hack I posted. All the hack does is reliably reduce the number of koboSpans to one-per-node, rather than one-per-sentence. Inline tags such as <i>, <span>, <br/> etc are all nodes therefore a koboSpan is created. It sounds like you'd prefer to change the koboSpan algorithm to one-per-paragraph. If so you'll need to figure out how to do that yourself. I doubt that it's a simple hack, given the variety of weird HTML markup that exists in the wild. On the other hand, developing something that works well enough with your own epubs is always easier than developing something that would also work well for everyone else. Good luck! |
|
04-01-2019, 11:35 AM | #87 | |
Enthusiast
Posts: 36
Karma: 10
Join Date: Mar 2019
Device: Kobo Clara HD
|
Quote:
thank you Unfortunately what are the kepub expectations for the best rendering result is not very well documented. I understood during debug the KTE, that it handles the nodes, and the elements (plus the child elements...) separately and so creates the SPANS. I am fully appreciated about your shared code. I played a lot with it as well. My goal is to find out, what would be the best looking rendered result. (btw. If there is no tags between the <p></p>, Your hack does the same --> one spans per paragraph). I simple wanted try out what is better: having long untouched texts or split them. Having all my full appreciation for the KTE developer, I would like to ask, is that also a KOBO requirement to flatten the CSS, like calibre does? I mean the calibre generated classes everywhere, instead of using the p+p, or h+p... approach for handling the paragraphs. |
|
04-01-2019, 12:19 PM | #88 | ||
Grand Sorcerer
Posts: 6,212
Karma: 16534894
Join Date: Sep 2009
Location: UK
Device: Kobo: KA1, ClaraHD, Forma, Libra2, Clara2E. PocketBook: TouchHD3
|
Quote:
Quote:
I don't think you would want to leave the "no koboSpans" hack in place as I seem to remember it will remove some of the kepub functionality e.g. highlighting, search in book and also I can't remember what it does to the Kobo's ability to remember book progress between sessions. I think dictionary lookup still works, though. However, who am I to make that judgement? If you don't need any of the above, "no koboSpans" is a much easier reliable hack than one-per-paragraph. |
||
04-01-2019, 12:52 PM | #89 | |
Enthusiast
Posts: 36
Karma: 10
Join Date: Mar 2019
Device: Kobo Clara HD
|
Quote:
It is from same developer, (the codes are almost identical) and I didn't wanted copy force and back the sent kepubs from KOBO for checking the result. As in debug I didn't found a place where to stop the code before sending it to device. Could be that the kepub output makes the "flattening css" and the kte is not flattening. I will try Last edited by Gorcsev; 04-01-2019 at 02:03 PM. |
|
04-01-2019, 04:46 PM | #90 |
Enthusiast
Posts: 36
Karma: 10
Join Date: Mar 2019
Device: Kobo Clara HD
|
The confusion was on my side.
The KTE itself not flatten the output, not generates the calibre classes, just make a nice kepub on the device. jackie_w thank you for let me realize my mistake |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
3.26.1 not converting Kepub format | RZetlin | Conversion | 2 | 06-26-2018 02:47 AM |
Aura H2O trying kepub and have questions | Shadowjack | Kobo Reader | 25 | 12-26-2017 04:30 AM |
Glo Question regarding kepub format | user2178319 | Kobo Reader | 18 | 05-14-2015 12:48 PM |
Kepub format and Koreader | gontofe | Kobo Reader | 4 | 08-20-2014 09:10 AM |
Harry Potter KePUB format | Gazella | Conversion | 19 | 04-13-2014 06:54 AM |