Package nl.dedicon.pipeline.braille.step
Class SymbolsReplacer
- java.lang.Object
-
- nl.dedicon.pipeline.braille.step.SymbolsReplacer
-
public class SymbolsReplacer extends Object
Replace symbols in a DTBook and insert a symbols list Based on W3C DOM- Author:
- Paul Rambags
-
-
Constructor Summary
Constructors Constructor Description SymbolsReplacer(net.sf.saxon.s9api.XdmNode symbolsCodeNode)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Set<Replace>getSymbolsListReplaces()Get the set of replaces for the symbol list of this DTBookvoidinsertSymbolsList(Document document, String header)Inserts the symbols list in a DTBookvoidreplaceSymbols(Node node)Recursively replace all symbols in text nodes with their braille representation
-
-
-
Method Detail
-
getSymbolsListReplaces
protected Set<Replace> getSymbolsListReplaces()
Get the set of replaces for the symbol list of this DTBook- Returns:
- set of replaces
-
replaceSymbols
public void replaceSymbols(Node node)
Recursively replace all symbols in text nodes with their braille representation- Parameters:
node- DTBook node
-
-