Class ChineseTranslationExtractorWikiModel
java.lang.Object
info.bliki.wiki.model.AbstractWikiModel
info.bliki.wiki.model.WikiModel
org.getalp.dbnary.bliki.DbnaryWikiModel
org.getalp.dbnary.languages.commons.EnglishLikeModulesPatcherWikiModel
org.getalp.dbnary.languages.zho.ChineseDbnaryWikiModel
org.getalp.dbnary.languages.zho.ChineseTranslationExtractorWikiModel
- All Implemented Interfaces:
info.bliki.wiki.model.IConfiguration, info.bliki.wiki.model.IContext, info.bliki.wiki.model.IWikiModel
-
Nested Class Summary
Nested classes/interfaces inherited from interface info.bliki.wiki.model.IConfiguration
info.bliki.wiki.model.IConfiguration.Casing -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Patternprotected static final Stringprotected final intprotected final intprotected static final Patternprotected static final Stringprotected static final Stringprotected final intFields inherited from class DbnaryWikiModel
trace, wiFields inherited from class info.bliki.wiki.model.WikiModel
categories, includes, links, semanticAttributes, semanticRelations, templatesFields inherited from class info.bliki.wiki.model.AbstractWikiModel
attributes, fExternalLinksCounter, fLocale, fNamespace, fNamespaceName, fNoToc, fPageTitle, fParameterParsingMode, fRecursionLevel, fRedirectLink, fReferenceNames, fReferences, fSectionCounter, fTagStack, fTemplateRecursionCount, fTemplates, fTemplateTopic, fToCSet, logger -
Constructor Summary
ConstructorsConstructorDescriptionChineseTranslationExtractorWikiModel(IWiktionaryDataHandler we, Locale locale, String imageBaseURL, String linkBaseURL, AbstractGlossFilter glossFilter) ChineseTranslationExtractorWikiModel(IWiktionaryDataHandler we, WiktionaryPageSource wi, Locale locale, String imageBaseURL, String linkBaseURL, AbstractGlossFilter glossFilter) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisNormalType(String textContent) voidparseTranslationBlock(String block) voidsubstituteTemplateCall(String templateName, Map<String, String> parameterMap, Appendable writer) Methods inherited from class ChineseDbnaryWikiModel
getRawWikiContentMethods inherited from class DbnaryWikiModel
displayGlobalTrace, expandWikiCode, getAndPatchModule, loadModuleResource, patchModule, prepareForTransclusion, renderMethods inherited from class info.bliki.wiki.model.WikiModel
addCategory, addInclude, addLink, addSemanticAttribute, addSemanticRelation, addTemplate, appendInternalLink, appendInternalLink, createImageName, getCategories, getImageBaseURL, getIncludes, getLinks, getNamespace, getSemanticAttributes, getSemanticRelations, getTemplates, getWikiBaseURL, parseInternalImageLink, replaceColon, setUp, toHtml, toHtml, toHtml, toTextMethods inherited from class info.bliki.wiki.model.AbstractWikiModel
addCodeFormatter, addInterwikiLink, addTemplateFunction, addTokenTag, addToReferences, addToTableOfContent, append, appendExternalImageLink, appendExternalLink, appendHead, appendInternalImageLink, appendInterWikiLink, appendISBNLink, appendMailtoLink, appendRawNamespaceLinks, appendRawWikipediaLink, appendRedirectLink, appendSignature, appendStack, buildEditLinkUrl, casing, createNewInstance, createScribuntoEngine, createTableOfContent, decrementRecursionLevel, decrementTemplateRecursionLevel, encodeTitleDotUrl, encodeTitleToUrl, getAttribute, getAttributeRenderer, getCodeFormatterMap, getCurrentTimeStamp, getFrame, getInterwikiMap, getLocale, getMagicWord, getNamespaceName, getNextNumber, getNode, getPageName, getRecursionLevel, getRedirectLink, getReferences, getResourceBundle, getSimpleDateFormat, getTableOfContent, getTemplateCallsCache, getTemplateFunction, getTemplateMap, getTokenMap, getUriSchemeSet, getWikiBaseEditURL, getWikiListener, incrementRecursionLevel, incrementTemplateRecursionLevel, initialize, isCamelCaseEnabled, isEditorMode, isInterWiki, isMathtranRenderer, isNamespace, isNoToc, isParameterParsingMode, isPreviewMode, isSemanticWebActive, isTemplateTopic, isValidUriScheme, isValidUriSchemeSpecificPart, parseBehaviorSwitch, parseEvents, parseTemplates, parseTemplates, peekNode, popNode, pushNode, rawSetAttribute, reduceTokenStack, registerRenderer, render, render, render, render, renderPDF, setAttribute, setAttributeRenderers, setDefaultThumbWidth, setFrame, setNamespaceName, setNoToc, setPageName, setParameterParsingMode, setSemanticWebActive, setTemplateCallsCache, showSyntax, splitNsTitle, stackSize, swapStack, tearDown
-
Field Details
-
carPatternString
-
starChinesePatternString
-
macroOrLinkOrcarPatternString
-
INIT
protected final int INIT- See Also:
-
LANGUE
protected final int LANGUE- See Also:
-
TRAD
protected final int TRAD- See Also:
-
macroOrLinkOrcarPattern
-
carPattern
-
-
Constructor Details
-
ChineseTranslationExtractorWikiModel
public ChineseTranslationExtractorWikiModel(IWiktionaryDataHandler we, Locale locale, String imageBaseURL, String linkBaseURL, AbstractGlossFilter glossFilter) -
ChineseTranslationExtractorWikiModel
public ChineseTranslationExtractorWikiModel(IWiktionaryDataHandler we, WiktionaryPageSource wi, Locale locale, String imageBaseURL, String linkBaseURL, AbstractGlossFilter glossFilter)
-
-
Method Details
-
isNormalType
-
parseTranslationBlock
-
substituteTemplateCall
public void substituteTemplateCall(String templateName, Map<String, String> parameterMap, Appendable writer) throws IOException- Specified by:
substituteTemplateCallin interfaceinfo.bliki.wiki.model.IWikiModel- Overrides:
substituteTemplateCallin classChineseDbnaryWikiModel- Throws:
IOException
-