Hyphenation doesn´t work with dita-ot 2.5.1 and Apache FOP - pdf

I use dita-ot to render to pdf.
Recently, I upgraded from dita-ot 1.8.M2 to 2.5.1
Updating my pdf plugins was quite a bit of work, but the only thing that I don´t get to work properly is hyphenation.
I did it all as described on the Apache website.
The relevant instruction in detail:
"Download the precompiled JAR from OFFO and place it either in the
{fop-dir}/lib directory, or in a directory of your choice (and append
the full path to the JAR to the environment variable
FOP_HYPHENATION_PATH)."
That is how it worked with dita-ot 1.8.M2, where the {fop-dir} was placed in the "org.dita.pdf2" plugin.
Now, {fop-dir} is in the "org.dita.pdf2.fop" plugin. Maybe this is the reason, why "fop-hyph.jar" is obviously not found by the process? But what about the environment variable?
Has anybody a solution?

I found the solution by myself: I just added the attribute <xsl:attribute name="hyphenate">true</xsl:attribute> to the attribute set common.block inside of the attribute file commons-attr.xsl.
I found out that not FOP or the jar file is the cause, when I compared a FO file generated with the old dita-ot (with hyphenation) to a FO file of the new dita-ot. What was missing was the hyphenate=true attribute in each block.
Thanks for your patience!

Related

Velocity 2.0: Unreadable Engine-Core-2.0 JAR

I downloaded Velocity 2.0 (Engine-Core-2.0 JAR) from the Apache Velocity website, http://velocity.apache.org/download.cgi#engine , and am unable to use it:
The JAR is unreadable in ZIP Viewers like PeaZip, is there something special about this JAR?
velocity-engine-core-2.0.jar Archive is not readable.
Also in Eclipse,
Archive for required library: velocity-engine-core-2.0.jar' in project '..' cannot be read or is not a valid ZIP file
Also, another question: Velocity used to be packaged as a single JAR, like velocity-1.6.jar or velocity-1.7.jar. Why is 2.0 different?
The download links don't take into account the selected mirror (the fix is underway). Meanwhile, replace "http://velocity.apache.org" in the jars URLs with the mirror URL.
EDIT: the fix went through, the links should now work.

Is there any Plugin available for VueJs in Netbeans 8.2

Netbeans 8.x intellisense doesn't identify VueJS tags. Is there any Plugin available for VueJs syntax highlighting or autofill support in Netbeans 8.x? If not, are there any work arounds?
.vue file is a kind of html file, you can add syntax highlighting in Netbeans :
Tools > Options > Miscellaneous > Files
Add a new file extension :
File Extension : vue
Associated File Type (MIME) : HTML Files (text/html)
Not perfect but it seems there is no plugin for this actually.
EDIT : Visual Studio Code has nice features for vuejs
There is a plugin but it is still in developtment: https://github.com/Zwaen91/vuejs-netbeans. Some problems with the mixed mimetype text/vue+html. Created a ticket here: https://issues.apache.org/jira/browse/NETBEANS-88
Very Easy Solution:
First time, I also faced this problem when I am working on Netbeans
8.2.x Finally I got solution.
If you opened a PHP Project and if your file's extenstion is .html than NetBeans will display warning. Very easy solution.
replace your .html extension to .php .
Problem will be solve.See Screenshot from my PC's Netbeans.
See my Screenshot, there is no warning. Because, I have used [.]php extension.
Thanks

Struts2 Tag library not identified in IntelliJ 12

I have been trying everything to make IntelliJ allow the use of Struts2 taglib. However it keeps on complaining about <%# taglib prefix="s" uri="/struts-tags"%>. The error it shows in the IDE is:
Cannot resolve the uri /struts-tags
I have set up a new project from scratch and included the struts2 facet (which added the struts.xml file to src/META-INF and the struts2-core jar to myApp/lib).
Is there anything wrong with my project setup ?
Any help is appreciated as I have been stuck with this for a day now!
Environment: IntelliJ IDEA 12.1.6
The issue seemed to be due to IntelliJ caching and the problem is gone after invalidating cache and restart.
Re-indexing the project did the trick.
File > Invalidate Cache
Seems you are not configured a project feature Struts2 properly. You should add File Sets. Right click on the module in the project structure, use Module Config (F4), use Facets, use Struts2 Facet, use File Sets. Press + button to add configuration files. Make sure struts.xml and struts-default.xml, and struts-plugin.xml are added. The struts.xml should not be in src/META-INF but in src like shown in your picture. But struts2-core-x.x.x.x.jar should be on build path. Make sure you have properly configured a project build path, and it should be a valid file containing TLD files inside the jar in the META-INF folder.

ClassCastException ExtractingRequestHandler while trying to index PDF in Solr

I'm facing some difficulty indexing PDF in Solr. Initially I had a lot of JAR missing, which I included all (specially from "dist" and "contrib\extraction" folder. But now when I try to index my PDF I'm facing this ClassCastException ExtractingRequestHandler. Have anyone encountered this before or have any idea what's going wrong?
Try putting solr-cell.jar in your classpath. ExtractingRequestHandler class is inside solr-cell jar file.
Put it under /webapp/lib folder followed by restart.

Jython ImportError when embedding into Java on 'xml.dom.minidom'

I have a python script which is processing XML using xml.dom.minidom.
When I executed it with Jython by command line (jython myfile.py), everything was fine.
But when I tried to do the same thing embedding it into a java application, (I mean reading it as an java string then passing this string for evaluation) I got:
import xml.dom.minidom
ImportError: No module named xml
Which is driving me crazy. I tried to use different jython version (2.2, 2.5), to clear the cache, but nothing works!
Jython's Documentation tells me that we can use this module without any particular remarks.
Some people had the same problem on the internet but never got any replies. Except this:
here but still nothing work. I think I have the correct values in my jython registry, because it's working using the command line! It's just the embedding which fails everything.
I'm using a full install of Jython.
Why so much trouble, so?
Thanks in advance.
i've never done this before, but are you trying to embed jython like they did here or here? do you know where you got the jython.jar in your java classpath from? if you know where your jython module is located on disc then you might be able to just add that path as they did at the bottom of this page. To find the location of your module, load up jython and look in sys.path for a path that ends in Lib. that location should have a directory named xml (the xml package) which contains a directory named dom (the dom package), which contains a file minidom.py (the minidom module).
The xml module (jython) isn't on the the python-path of your embedded jython.
This may help:
use a jython-jar which contains the Lib (and all the Batteries :-)
put the Libs on the classpath of your java app
to help debug:
log "sys.path" in your embedded jython