gregturn / asciidoctor-packt Goto Github PK
View Code? Open in Web Editor NEWBackend and theme to convert Asciidoctor files into Packt Publishing OpenOffice doc
Home Page: http://greglturnquist.com/category/learning-spring-boot
Backend and theme to convert Asciidoctor files into Packt Publishing OpenOffice doc
Home Page: http://greglturnquist.com/category/learning-spring-boot
Tried to code Keyword, but it goes nuts when plugging in Key_20_Word_20__5b_PACKT_5d_ as the style. So, using what I use in asciidoc: plugin strong and then replace it in post processing, only inside normal/tips/bullets. (Should probably expand post proessing to include numbered lists.)
I used docbook's image.xml.slim as a basis, but it won't insert any of the attributes.
I have:
text:p text:style-name="imageblock"
draw:frame draw:style-name="imageblock" draw:name="image" text:anchor-type="paragraph" draw:z-index="1" svg:width="(attr :width)" svg:height="(attr :height)"
draw:image xlink:href="(@target)" xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"
docbook has:
figure id=@id role=(attr :role) xreflabel=(attr :reftext)
- if title?
title=title
mediaobject
imageobject
imagedata fileref=image_uri(attr :target) contentwidth=(attr :width) contentdepth=(attr :height) scale=(attr :scale) width=(attr :scaledwidth) scalefit=((attr? :scaledwidth) ? 1 : nil) align=(attr :align)
textobject: phrase=attr :alt
Might be the double quotes.
Hi,
Thanks a lot for this tool :).
I've noticed that the titles do not appear as "Heading 1,Heading 1 [PACKT]" but as "Heading 1". Is this because Packt has "copied" standard headings or it this a bug?
Thanks again for creating a sharing this awesome tool :), you made my day.
I cannot have an inline image in the asciidoc file unless I know the aspect ratio. If I do not specify width and height then the picture will be a thumbnail.
If I say image:: .... [width="100%"]
then the height will be zero, and I get a line.
If I say image:: .... [width="100%" heigth="50%"]
then the image will be distorted based on the original aspect ratio and the size of the page (note 50% can be practically anything).
My workaround is that I have a python script that reads the width and the height from the SVG file and then inserts it automatically into the manuscript, but this is a hack.
Right now, the following chunk doesn't render properly:
[NOTE]
====
Yada yada.
[source,xml]
----
<my-xml>
</my-xml>
----
====
It looks fine in HTML with the code nicely inserted inside the admonition. But in FODT, nothing is visible probably because its a text:p inside a text:p.
In 92ce0d2 I can only seem to get the text itself. Any attempt to embed attribution causes it to get shoved in with no ability to space it out.
I'm trying to use asciidoc-packt
I'd be grateful if someone could interpret the following error message
asciidoc: FAILED: asciidoc_manual.txt: line 8: illegal [miscellaneous] subsverbatim: specialcharacters,callouts,replacements3: replacements3
That was in response to this command
asciidoc -b packt --theme packt asciidoc_manual.txt
I'm running on Ubuntu 12.04
In case its relevant, here is what I did to install packt-theme-0.1.0.zip
sudo asciidoc --theme install packt-theme-0.1.0.zip /etc/asciidoc/themes/packt
And the second zip (packt-backend-0.1.0.zip)
sudo asciidoc --backend install packt-backend-0.1.0.zip /etc/asciidoc/backends/packt
So far, all admonitions result in a Tip. Already need the means to use Information Box. So...might as well come up with way to may all of them.
Inserting an image simply links to the external file. Need a way to properly encode the image and paste it in.
I'm seeing this when using code sections with callouts.
Caused by: org.jruby.exceptions.RaiseException: (RuntimeError) Could not find a converter to handle transform: inline_callout
Packt margins are pretty big (4 from each border) while asciidoctor created much smaller margins.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.