| Modifier and Type | Method and Description |
|---|---|
| public void | customPlaceholderFormat(@NotNull TranslationPlaceholderGenerator
placeholder generator generator, @NotNull TranslatingSpanRender render which will be used with the custom generator render)Temporarily change the format for placeholders |
| public @Nullable HtmlIdGenerator | |
| public @Nullable MergeContext | |
| public @NotNull RenderPurpose | Returns: RenderPurpose for current renderingGet the reason this format rendering is being performed |
| public @NotNull MutableDataHolder | getTranslationStore()
Get MutableDataHolder for storing this translation run values across render purpose phases |
| public boolean | |
| public boolean | Returns: true if need to call translation related functionsReturns false if special translation functions are no-ops
During |
| public void | |
| public void | postProcessNonTranslating(@NotNull Function<String, CharSequence>
id post processor for TRANSLATED purpose postProcessor, @NotNull Runnable code to which the post processor applies scope)
|
| public <T> T | postProcessNonTranslating(@NotNull Function<String, CharSequence>
id post processor for TRANSLATED purpose postProcessor, @NotNull Supplier<T> code to which the post processor applies scope)
|
| public @NotNull CharSequence | Returns: anchorRef for the phase to be used for renderingurl part without the anchor ref to resolve reference pageRef, @NotNull CharSequence anchor ref anchorRef)During |
| public @NotNull CharSequence | Returns: text to be used in rendering for this phaseprefix to use on non-translating placeholder so it is interpreted as a proper element during parsing prefix, @NotNull CharSequence non-rendering text of the node (content will depend on translation phase) nonTranslatingText, @Nullable CharSequence suffix to use on non-translating placeholder so it is interpreted as a proper element during parsing suffix, @Nullable CharSequence suffix to use on non-translating placeholder so it is interpreted as a proper element during parsing suffix2)Transform non-translating text
During |
| public @NotNull CharSequence | Returns: text to be used in rendering for this phaseprefix to use on non-translating placeholder so it is interpreted as a proper element during parsing prefix, @NotNull CharSequence translating but isolated text of the node (content will depend on translation phase) translatingText, @Nullable CharSequence suffix to use on non-translating placeholder so it is interpreted as a proper element during parsing suffix, @Nullable CharSequence suffix to use on non-translating placeholder so it is interpreted as a proper element during parsing suffix2)Transform translating text but which is contextually isolated from the text block in which it is located ie. |
| public void | translatingRefTargetSpan(@Nullable Node
target node, target, @NotNull TranslatingSpanRender render)Separate translation span which is also a ref target |
| public void |
| customPlaceholderFormat | back to summary |
|---|---|
| public void customPlaceholderFormat(@NotNull TranslationPlaceholderGenerator generator, @NotNull TranslatingSpanRender render) Temporarily change the format for placeholders
| |
| getIdGenerator | back to summary |
|---|---|
public @Nullable HtmlIdGenerator getIdGenerator()
| |
| getMergeContext | back to summary |
|---|---|
public @Nullable MergeContext getMergeContext()
| |
| getRenderPurpose | back to summary |
|---|---|
| public @NotNull RenderPurpose getRenderPurpose() Get the reason this format rendering is being performed
| |
| getTranslationStore | back to summary |
|---|---|
| public @NotNull MutableDataHolder getTranslationStore() Get MutableDataHolder for storing this translation run values across render purpose phases
| |
| isPostProcessingNonTranslating | back to summary |
|---|---|
public boolean isPostProcessingNonTranslating()
| |
| isTransformingText | back to summary |
|---|---|
| public boolean isTransformingText() Returns false if special translation functions are no-ops
During
| |
| nonTranslatingSpan | back to summary |
|---|---|
| public void nonTranslatingSpan(@NotNull TranslatingSpanRender render) Separate non-translation span. Will generate a paragraph of text which will not be translated
During | |
| postProcessNonTranslating | back to summary |
|---|---|
| public void postProcessNonTranslating(@NotNull Function<String, CharSequence> postProcessor, @NotNull Runnable scope) | |
| postProcessNonTranslating | back to summary |
|---|---|
| public <T> T postProcessNonTranslating(@NotNull Function<String, CharSequence> postProcessor, @NotNull Supplier<T> scope) | |
| transformAnchorRef | back to summary |
|---|---|
| public @NotNull CharSequence transformAnchorRef(@NotNull CharSequence pageRef, @NotNull CharSequence anchorRef) During
| |
| transformNonTranslating | back to summary |
|---|---|
| public @NotNull CharSequence transformNonTranslating(@Nullable CharSequence prefix, @NotNull CharSequence nonTranslatingText, @Nullable CharSequence suffix, @Nullable CharSequence suffix2) Transform non-translating text
During
| |
| transformTranslating | back to summary |
|---|---|
| public @NotNull CharSequence transformTranslating(@Nullable CharSequence prefix, @NotNull CharSequence translatingText, @Nullable CharSequence suffix, @Nullable CharSequence suffix2) Transform translating text but which is contextually isolated from the text block in which it is located ie. link reference or image reference
During
| |
| translatingRefTargetSpan | back to summary |
|---|---|
| public void translatingRefTargetSpan(@Nullable Node target, @NotNull TranslatingSpanRender render) Separate translation span which is also a ref target | |
| translatingSpan | back to summary |
|---|---|
| public void translatingSpan(@NotNull TranslatingSpanRender render) Separate translation span. Will generate a paragraph of text which should be translated as one piece
During | |