https://bugzilla.wikimedia.org/show_bug.cgi?id=19417
--- Comment #4 from Ursin Solèr <[email protected]> 2009-07-08 19:28:57 UTC --- (In reply to comment #3) > (In reply to comment #2) > > Thanks for your answer! > > > > I heard from this new value, but I was wondering what happens with the > > unicode > > char encodings (which can also have more than 1 byte per char)? Does it > > count > > each char as 1 byte? > Yes. Charoffset would have been a better name. Cool! This is good news! Thank you! > > And another thing is; what happens if the page contains > > templates whose contain headings by themselves (retrieved by 'query': > > action=query&prop=revisions&rvprop=content&rvexpandtemplates)? Are those > > headings > > took into account too, or how are they handled? > > > They aren't counted, the offset you get is the offset in the *original* > wikitext, which of course doesn't contain these sections, just the template > call. Transcluded sections themselves don't have offsets. > So will there be a byte-/charoffset for action=query&rvexpandtemplates in the future? And/or for action=parse? (feature request ;) -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
