![]() |
#1 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Old game walkthroughs (ASCII art/fixed-width)
I have a bunch of old game walkthroughs from GameFAQs and the like. Several of them have ASCII art like this:
https://gamefaqs.gamespot.com/pc/917...ion/faqs/14654 Should I just stick to an external viewer for these? I like the search in ebook-viewer but it really doesn't render correctly. |
![]() |
![]() |
![]() |
#2 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,740
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Unfortunately, monospaced fonts don't seem to help much.
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,344
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Put them in <pre> blocks and switch the viewer to flow mode and you should be fine.
|
![]() |
![]() |
![]() |
#5 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,155
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Could you try this rather simple version of FAQ that you linked to and let me know how it views. Likely one of the simplest ebooks I've ever done since virtually all of the text is wrapped in a single <pre>...</pre> pair. It may give you some ideas about how to handle these files.
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
That works. I'll try it with others.
![]() |
![]() |
![]() |
![]() |
#7 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,155
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
You're welcome. <straining arm while patting my back>
|
![]() |
![]() |
![]() |
#8 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
For anyone else who comes across this thread in the future, adding this to stylesheet.css improves converted txt > ePub walkthroughs a bit:
Code:
pre { font-family: "courier new", courier, monospace; font-size: 10px; white-space: pre-wrap; } |
![]() |
![]() |
![]() |
#9 | |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Shouldn't that be 10pt (which is also scalable )? |
|
![]() |
![]() |
![]() |
#10 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Both of them seem to work, though 10pt is visibly larger than 10px.
|
![]() |
![]() |
![]() |
#11 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#12 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,155
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
I would have used 0.625em for the font size and since pre presumes a fixed width font, the font-family declaration should not be needed. At least, calibre and Sigil don't seem to care about the font family and my Kobos don't seem to need it either though I do have a monospace font installed on them. I admit to being rather surprised that unlike Sigil's preview and it's three test renderers or ADE, calibre's ebook viewer did some strange things when the screen was set to a narrow width. Last edited by DNSB; 07-27-2022 at 11:47 AM. Reason: Edit: added image files for display oddity in calibre viewer |
|
![]() |
![]() |
![]() |
#13 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,969
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
good call on the 0.625em -- I was just mostly waffling around trying to get it to look okay.
I didn't get the cut-off text. Are you using paged or flow mode? Kovid mentioned that in my ticket. |
![]() |
![]() |
![]() |
#14 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,155
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Convert fixed-width to reflowable EPUB? | Will2 | Conversion | 5 | 12-05-2020 02:39 PM |
Fixed menu item width | Fuzzi | Calibre | 38 | 06-01-2018 04:26 AM |
Aura HD new to aura hd.. (annotation/fixed width fonts) | kbahd260 | Kobo Reader | 12 | 02-15-2014 06:35 PM |
How to apply fixed-width fonts | EnergyLens | Calibre | 5 | 04-17-2010 12:41 PM |
Fixed-width txt to fluid one | vitalyb | Workshop | 5 | 12-05-2009 08:06 AM |