Hi Daniel,
> We could add a new method JLanguageTool.check(AnnotatedText). This
> AnnotatedText object contains a list of tokens and each token is either
> text or markup. For an XML snippet like "hi <b>there</b>", it could be
> created like this:
>
> new AnnotatedText()
> .addText("hi ")
> .addMarkup("<b>")
> .addText("there")
> .addMarkup("</b>");
> ...
> Does this make sense?
Looks like a good general solution.
I assume the text will be checked as the sum of all text parts, right?
That is if we have:
Text="wordA "
Markup="<abc>"
Text="wordB"
If some issue should be triggered by "wordA wordB" it will be.
And only the positions will be affected by the markup parts.
Thanks,
-ys
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Languagetool-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-devel