Comments (4)
This is a Ruby 1.9 issue that was also reported in #33. I've since made the fix in master and it will be included in the alpha2 release.
Long story short, Ruby 1.9 chokes if there are characters in a source file outside the BMP unless the file starts with the magic encoding header. I've added that header, but in general I strongly recommend users to switch to Ruby 2.0. In JRuby, there is a flag that you can use to switch to 2.0...and we should enable that in AsciidoctorJ. JRuby 9000k will default to Ruby 2.x compliance to my knowledge...which makes total sense since Java has had proper unicode support since day 1.
from asciidoctor-pdf.
Here's the fix, btw:
from asciidoctor-pdf.
Here's the issue to switch to Ruby 2.0 in AsciidoctorJ.
You should be able to make this switch explicitly using the JRUBY_OPTS env var. See http://asciidoctor.org/docs/asciidoctorj/#optimization
from asciidoctor-pdf.
Tested with with alpha3 and it works well enough. Closing.
from asciidoctor-pdf.
Related Issues (20)
- Decompose characters using NFD normalization when performing smallcaps transformation HOT 1
- Page numbers for index entries incorrect when toc macro is used in prepress book when page-numbering-start-at is after-toc
- toc start at value don't always behave as expected
- PDF theme default values not respected HOT 1
- Incorrect warning about missing character in fallback font when using inline image HOT 1
- Surrounding text in content key of running content is dropped if image macro is on its own line
- Embedding of "built-in" fonts HOT 2
- Deactivate header/footer in inserted blank pages in prepress mode HOT 2
- listing block font-size is a fixed value? HOT 1
- Customise a block according to its type HOT 1
- Ordered list starting from 0 HOT 2
- Source location not reported if description in horizontal dlist is truncated
- Upgrade prawn-svg to 0.34.x HOT 1
- Remove link from entry in TOC
- Support prawn-icon 3.1.x in v2.3.x branch HOT 1
- Lock ttfunk to 1.7.x in 2.3.x release line HOT 2
- Producer set to Author instead of producing software in document properties
- Document exceptions to the nobreak role and non-breaking characters HOT 6
- Add support for SVG to image referece in SVG encoded as a data URI (SVG data loader) HOT 1
- Alternative to prawn-gmagick? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asciidoctor-pdf.