As long as your CSS/HTML is fine that's all that matters. Kindle is not
a good renderer.
On 4/20/23 5:41 AM, Hendrik Kaiber wrote:
> I'll managed to resize the map and it shows fine on my kindle. However
> it seems to be an empty page between the epigraph and the map, and the
> reason is not clear to me, can someone point me to the problem? Other
> than that, it should be up for review.
> -Hendrik
>
> Em quinta-feira, 20 de abril de 2023 às 03:29:22 UTC-3, robin escreveu:
>
> The viewbox is basically just stipulating which part of the bigger
> image should be visible. To resize the path, the easiest way would
> probably be to:
>
> 1. Take a copy of your SVG and open in Inkscape
> 2. Click on the path and use the drag handle to resize the path to
> something quite a lot smaller. If you hold Ctrl while resizing
> it retains the aspect ratio.
> 3. Edit / Resize Page to Selection.
> 4. Save your copy. That copy will have a resized path, and the
> correct viewBox attribute in it. You can copy those back into
> your original SVG and check.
>
>
> -Robin
>
>> On 20 Apr 2023, at 02:26, Hendrik Kaiber <
hendrik....@gmail.com>
>> wrote:
>>
>>
>> I think the code of the loi, map xhtml and content.opf is correct,
>> but I couldn't find how to properly resize the .svg file. I put
>> the viewBox attribute to the max values allowed, but now it just
>> shows a part of the map. How do I proceed to resize the svg path?
>> -Hendrik
>> Em quarta-feira, 19 de abril de 2023 às 15:12:28 UTC-3, robin
>> escreveu:
>>
>> Good job! It’s almost there, you’ll need to just add the
>> correct xmlns:svg attribute to the SVG and the XML header.
>> Check the Beatrix Potter link again. Oh, and you can remove
>> the style attribute from the path, it’s not needed.
>>
>> Once you’ve done that then you’ll need to write a title
>> attribute that describes the map. Think what sort of things a
>> person describing the map to you would say. I guess 4-5
>> sentences would cover all that information?
>>
>> When it comes to getting it into the book, you’ll want to put
>> it into a frontispiece file. You can follow the example of
>> /Pellucidar; /see this example where Alex added
>> one://
https://github.com/standardebooks/edgar-rice-burroughs_pellucidar/commit/a3367c676f30213e5b88915f4613e51de2c4f5b8 <
https://github.com/standardebooks/edgar-rice-burroughs_pellucidar/commit/a3367c676f30213e5b88915f4613e51de2c4f5b8>.
>> /
>> /
>>> On 18 Apr 2023, at 01:31, Hendrik Kaiber
>>> <
hendrik....@gmail.com> wrote:
>>>
>>> I managed to make a semi-decent .svg file (somehow), but I'm
>>> confused about the viewBox attribute. Opening the file in
>>> VSCode shows height and width attributes, what is the proper
>>> action to make it correct? Also, if no work is required in
>>> the .svg is needed, what should I do insert the image and
>>> create the Loi? The manual of style wasn't very clear to me.
>>> The .svg:
>>>
>>> Em segunda-feira, 17 de abril de 2023 às 16:44:11 UTC-3,
>>> Hendrik Kaiber escreveu:
>>>
>>> I don't have experience working with images, but I'll try
>>> to make this work in the evening.
>>> -Hendrik
>>>
>>> Em segunda-feira, 17 de abril de 2023 às 16:34:30 UTC-3,
>>> robin escreveu:
>>>
>>> I’d basically work in this order:
>>>
>>> 1. Find the best quality scans you can
onarchive.org
>>> <
http://archive.org/>
>>> 2. Take the two pages with the map on, join them
>>> together so that the map looks like it’s printed
>>> on one page, and rotate 90º
>>> 3. Save that out as a PNG to the images folder
>>> 4. Download Inkscape (there are alternatives, but
>>> this is free and my favourite)
>>> 5. Drag the PNG into an empty Inkscape document
>>> 6. Trace the PNG with Path / Trace Bitmap. You might
>>> need to play around with the controls to get good
>>> results
>>> 7. Select the PNG (by clicking on the white border)
>>> and delete it. You should be left with just a path.
>>> 8. There’s one more annoying step to do in Inkscape:
>>> by default there’ll be transforms in place that
>>> we don’t want. Easiest way to get rid of them is
>>> to open the XML editor (Edit / XML Editor) then
>>> drag the svg:path element to above the svg:g
>>> element. This will get rid of the transform. You
>>> can then delete the svg:g element.
>>> 9. The traced path will now be misaligned to the
>>> viewport, but you can resize the canvas to fit
>>> the path by clicking on the path then Edit /
>>> Resize Page to Selection
>>> 10. Save the file to src/epub/images
>>> 11. Finally, you need to remove a bunch of excess
>>> stuff that Inkscape has left. Typically I’d take
>>> a backup copy of your file that you can restore
>>> to, then run it through SVGOMG
>>> <
https://jakearchibald.github.io/svgomg/>. You
>>> may need to massage it a little more, but you’re
>>> aiming for code that looks like this image from
>>> Beatrix Potter
>>> <
https://raw.githubusercontent.com/standardebooks/beatrix-potter_short-fiction/master/src/epub/images/illustration-163.svg>: an svg root element with a viewbox, a title that describes the image, and a path.
>>>
>>>
>>> After that there’s some additional stuff to do with
>>> getting an LoI in place, but that can come afterwards.
>>>
>>> -Robin
>>>
>>>> On 17 Apr 2023, at 19:55, Hendrik Kaiber
>>>> <
hendrik....@gmail.com> wrote:
>>>>
>>>> It turned out to be harder than I thought. Can you
>>>> point me to the process used in other projects?
>>>> Also, should I convert to what format to work with?
>>>>
>>>> Em segunda-feira, 17 de abril de 2023 às 10:13:09
>>>> UTC-3, BTK escreveu:
>>>>
>>>> FWIW there are lots of editions of this book
>>>>
onarchive.org <
http://archive.org/> and some
>>>> have better or worse scans
>>>>
>>>> B
>>>>
>>>>> On Apr 17, 2023, at 5:05 AM, Hendrik Kaiber
>>>>> <
hendrik....@gmail.com> wrote:
>>>>>
>>>>> I'll try to do this alone, if I find any
>>>>> difficulties I'll come here, Thanko you.
>>>>> -Hendrik
>>>>>
>>>>> Em domingo, 16 de abril de 2023 às 18:34:25
>>>>> UTC-3, robin escreveu:
>>>>>
>>>>>
>>>>> Sorry, missed your earlier question.
>>>>>
>>>>> On the subject of release dates, you’d use
>>>>> the original publishing date of the novel,
>>>>> not the transcription.
>>>>>
>>>>> For the map scans,
archive.org
>>>>> <
http://archive.org/>provides a “ SINGLE
>>>>> PAGE PROCESSED JP2 ZIP
>>>>> <
https://archive.org/download/beforeadam02londgoog/beforeadam02londgoog_jp2.zip>” option that’ll contain the best scans. If cutting this together and assembling an SVG feels super daunting then I’m happy to help out with the image production process. Otherwise I can provide instructions on how to do it. Your call 🙂
>>>>>>>>> >
https://groups.google.com/d/msgid/standardebooks/dea9a4af-4839-462e-81f6-2d929d12f4e3n%40googlegroups.com <
https://groups.google.com/d/msgid/standardebooks/dea9a4af-4839-462e-81f6-2d929d12f4e3n%40googlegroups.com><
https://groups.google.com/d/msgid/standardebooks/dea9a4af-4839-462e-81f6-2d929d12f4e3n%40googlegroups.com?utm_medium=email&utm_source=footer <
https://groups.google.com/d/msgid/standardebooks/dea9a4af-4839-462e-81f6-2d929d12f4e3n%40googlegroups.com?utm_medium=email&utm_source=footer>>.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> You received this
>>>>>>>>> message because you are
>>>>>>>>> subscribed to the
>>>>>>>>> Google Groups "Standard
>>>>>>>>> Ebooks" group.
>>>>>>>>> To unsubscribe from
>>>>>>>>> this group and stop
>>>>>>>>> receiving emails from
>>>>>>>>> it, send an email
>>>>>>>>>
tostandardebook...@googlegroups.com.
>>>>>>>>> To view this discussion
>>>>>>>>> on the web
>>>>>>>>> visithttps://
groups.google.com/d/msgid/standardebooks/e3eddd82-1447-4ce7-998f-99359d78423fn%40googlegroups.com <
https://groups.google.com/d/msgid/standardebooks/e3eddd82-1447-4ce7-998f-99359d78423fn%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>>>>>>>
>>>>>>>> --
>>>>>>>> You received this
>>>>>>>> message because you are
>>>>>>>> subscribed to the Google
>>>>>>>> Groups "Standard Ebooks"
>>>>>>>> group.
>>>>>>>> To unsubscribe from this
>>>>>>>> group and stop receiving
>>>>>>>> emails from it, send an
>>>>>>>> email
>>>>>>>>
tostandardebook...@googlegroups.com.
>>>>>>>> To view this discussion
>>>>>>>> on the web
>>>>>>>> visithttps://
groups.google.com/d/msgid/standardebooks/38f2e8ce-d9b0-43ba-8a58-7f7e8de13a41%40Spark <
https://groups.google.com/d/msgid/standardebooks/38f2e8ce-d9b0-43ba-8a58-7f7e8de13a41%40Spark?utm_medium=email&utm_source=footer>.
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> You received this message
>>>>>>> because you are subscribed to
>>>>>>> the Google Groups "Standard
>>>>>>> Ebooks" group.
>>>>>>> To unsubscribe from this
>>>>>>> group and stop receiving
>>>>>>> emails from it, send an email
>>>>>>>
tostandardebook...@googlegroups.com.
>>>>>>> To view this discussion on
>>>>>>> the web
>>>>>>> visithttps://
groups.google.com/d/msgid/standardebooks/c0528497-e3cc-489f-a56e-807c2a3312ffn%40googlegroups.com <
https://groups.google.com/d/msgid/standardebooks/c0528497-e3cc-489f-a56e-807c2a3312ffn%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>>>>>
>>>>>> --
>>>>>> You received this message
>>>>>> because you are subscribed to
>>>>>> the Google Groups "Standard
>>>>>> Ebooks" group.
>>>>>> To unsubscribe from this group
>>>>>> and stop receiving emails from
>>>>>> it, send an email
>>>>>>
tostandardebook...@googlegroups.com.
>>>>>>
>>>>>> To view this discussion on the
>>>>>> web
>>>>>> visithttps://
groups.google.com/d/msgid/standardebooks/1B59FAA8-D9FC-4C70-853F-559045813720%40reala.net <
https://groups.google.com/d/msgid/standardebooks/1B59FAA8-D9FC-4C70-853F-559045813720%40reala.net?utm_medium=email&utm_source=footer>.
>>>>>>
>>>>>>
>>>>>> --
>>>>>> You received this message because you are
>>>>>> subscribed to the Google Groups "Standard
>>>>>> Ebooks" group.
>>>>>> To unsubscribe from this group and stop
>>>>>> receiving emails from it, send an email
>>>>>>
tostandardebook...@googlegroups.com.
>>>>>> To view this discussion on the web
>>>>>> visithttps://
groups.google.com/d/msgid/standardebooks/4bd78260-41b2-4709-8f7e-7179f430e896n%40googlegroups.com <
https://groups.google.com/d/msgid/standardebooks/4bd78260-41b2-4709-8f7e-7179f430e896n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>>>>
>>>>>
>>>>> --
>>>>> You received this message because you are
>>>>> subscribed to the Google Groups "Standard
>>>>> Ebooks" group.
>>>>> To unsubscribe from this group and stop
>>>>> receiving emails from it, send an email
>>>>>
tostandardebook...@googlegroups.com.
>>>>> To view this discussion on the web
>>>>> visithttps://
groups.google.com/d/msgid/standardebooks/b1ed4240-e0bd-4d92-a7e4-df58fc43b7ean%40googlegroups.com <
https://groups.google.com/d/msgid/standardebooks/b1ed4240-e0bd-4d92-a7e4-df58fc43b7ean%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>>>
>>>>
>>>> --
>>>> You received this message because you are subscribed
>>>> to the Google Groups "Standard Ebooks" group.
>>>> To unsubscribe from this group and stop receiving
>>>> emails from it, send an email
>>>>
tostandardebook...@googlegroups.com.
>>>> To view this discussion on the web
>>>> visithttps://
groups.google.com/d/msgid/standardebooks/8b3cde65-ee3b-44c4-b8f8-9cca434351d5n%40googlegroups.com <
https://groups.google.com/d/msgid/standardebooks/8b3cde65-ee3b-44c4-b8f8-9cca434351d5n%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>>
>>>
>>> --
>>> You received this message because you are subscribed to the
>>> Google Groups "Standard Ebooks" group.
>>> To unsubscribe from this group and stop receiving emails from
>>> it, send an email
tostandardebook...@googlegroups.com.
>>> To view this discussion on the web
>>> visithttps://
groups.google.com/d/msgid/standardebooks/65b4c474-e3dc-48f7-9707-f4a9bf4142dan%40googlegroups.com <
https://groups.google.com/d/msgid/standardebooks/65b4c474-e3dc-48f7-9707-f4a9bf4142dan%40googlegroups.com?utm_medium=email&utm_source=footer>.
>>> <map.svg>
>>
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Standard Ebooks" group.
>> To unsubscribe from this group and stop receiving emails from it,
>> send an email to
standardebook...@googlegroups.com.
>> To view this discussion on the web visit
>>
https://groups.google.com/d/msgid/standardebooks/6808d52b-8e82-4ee5-b7da-3d9b85cda85fn%40googlegroups.com <
https://groups.google.com/d/msgid/standardebooks/6808d52b-8e82-4ee5-b7da-3d9b85cda85fn%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Standard Ebooks" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
standardebook...@googlegroups.com
>
https://groups.google.com/d/msgid/standardebooks/575a12c3-20b9-419b-9894-8e0b42596f66n%40googlegroups.com <
https://groups.google.com/d/msgid/standardebooks/575a12c3-20b9-419b-9894-8e0b42596f66n%40googlegroups.com?utm_medium=email&utm_source=footer>.