quakeforge/libs
Bill Currie 9798400cfb [ui] Add a sub-system for parsing text passages
A passage object has a list of all the text objects in the given string,
where the objects represent either white space or "words", as well as a
view_t object representing the entire passage, with paragraphs split
into child views of the passage view, and each paragraph has a child
view for every text/space object in the paragraph.

Paragraphs are split by '\n' (not included in any object).

White space is grouped into clumps such that multiple adjacent spaces
form a single object. The standard ASCII space (0x20) and all of the
Unicode characters marked "WS;<compat> 0020" are counted as white space.
Unless a white space object is the first in the paragraph, its view is
marked for suppression by the view flow code.

Contiguous non-white space characters are grouped into single objects,
and their views are not suppressed.

All text object views (both white space and "word") have their data
pointer set to the psg_text_t object representing the text for that
view. This should be suitable for simple text-mode unattributed display.
More advanced rendering would probably want to create suitable objects
and set the view data pointers to those objects.

No assumption is made about text direction.

Passage and paragraph views need to have their primary axis sizes set
appropriately, as well as their resize flags. Their xlen and ylen are
both set to 10, and xpos,ypos is 0,0. Paragraph views need their
setgeometry pointer set to the appropriate view_flow_* function.
However, they are set up to have their secondary axis set automatically
when flowed.

Text object views are set up for automatic flowing: grav_flow, 0,0 for
xpos,ypos. However, xlen and ylen are also both 0, so need to be set by
the renderer before attempting to flow the text.
2022-09-30 19:51:14 +09:00
..
audio [audio] Ensure FLAC doesn't use dll imports 2022-09-13 17:13:57 +09:00
client Merge branch 'master' into wip-twod 2022-09-22 10:06:00 +09:00
console [console] Fix console sliding and resize 2022-09-28 21:57:10 +09:00
gamecode [gamecode] Use adjusted vector string for sscanf 2022-09-22 09:38:39 +09:00
gib Fix a pile of warnings for gcc 12 2022-07-31 17:13:26 +09:00
image [image] Update stub WritePNG's definition 2022-09-19 13:38:58 +01:00
input [input] Initialize the axis/button callback fields 2022-09-22 09:35:57 +09:00
models [models] Include fullbright in vulkan lib 2022-09-22 13:04:26 +09:00
net [net] Don't include windows.h or winsock.h directly 2022-09-19 16:32:45 +01:00
qw [util] Make sizebuf and msg sizes unisgned 2021-04-04 15:53:53 +09:00
ruamoko [ruamoko] Implement %@ handing in the ruamoko runtime 2022-09-09 14:48:03 +09:00
scene [scene] Update the empty world for the new mnode_t 2022-05-23 01:33:21 +09:00
ui [ui] Add a sub-system for parsing text passages 2022-09-30 19:51:14 +09:00
util [cvar] Remove reliance on line number for developer parsing 2022-09-24 18:26:25 +09:00
video [gl/glsl] Shift the 2d view by 0.5 pixels in X and Y 2022-09-28 22:50:44 +09:00
Makemodule.am [scene] Rename libQFentity to libQFscene 2021-07-24 14:20:59 +09:00