My notes on Brec Mode
\ + sync Brec Mode with the imager re bullet styling based on Unicode general categories
\ : privately cf. @ ~/base.brec : where tasked
\ ' Sync with Breccia Web Imager: easier to read bullets.
\ + deal with the negative case of minor-stylable alone, or only with whitespace
\ / negative in that effectively it removes or omits the styling
\ \ - directly after each face match in the variant fontifier, test whether the match comprises
\ \ minor-stylable and/or space content, and abort the fontifier (return nil) if it does
\ \\ !! too complicated
\ \ : see notepad:2024-6-18a
\ \\\\ rather:
\ : see notepad:2024-6-18a : In an earlier fontifier (when it is easiest) set a flag property.
\ + test a clean configuration
\ : see man:emacs : `--no-x-resources`, this too
no-break spaces
+ Make a no-break space visible only when the cursor enters its line or indent blind.
/ The mechanism desired here might be an overlay property.
: see https://www.gnu.org/software/emacs/manual/html_node/elisp/Overlay-Properties.html
: see https://www.gnu.org/software/emacs/manual/html_node/elisp/Displaying-Faces.html
+ First verify from the Web images that I can live with invisible no-break spaces.
/ I have not tried.
+ Make this behaviour customizeable.
fontification in a bullet
- Alone a face test suffices to guard the application of `brec-bullet-nobreak-space`
only because already the bullet fontifier detects and refuses to face misplaced
no-break spaces as bullet constituents.
: see `NBB` @ `NOTES` @ non-fractal brec-mode.el
- Otherwise the guard would *also* have to test for an alphanumeric predecessor.
: privately e.g. ~/work/Breccia/Emacs/._/brec-mode-boneyard.el
;; In a free-form bullet.
((and face (memq face '(brec-alarm-bullet brec-plain-bullet brec-task-bullet)))
(if (let ((b (char-before p)) b-type)
(when b
(setq b-type (get-char-code-property b 'general-category))
(or (string= "Ll" b) (string= "Lu" b) (string= "Nd" b)))); Alphanumeric.
(setq found t brec-f 'brec-forbidden-whitespace); No-break space after an alphanumeric.
(setq found t brec-f 'brec-bullet-nobreak-space))))))))))
image-file references, replacement by source-file references
- Prompt the user first.
- Suggest the alternative of qualifying the image-file reference as `non-fractal`.
: cf. ~/work/Breccia/Web/imager/BreccianFileTranslator.java : `warn_imageFileReference`
- Offer a substitution, if one is known.
: see `^*identification, fractum identifiers based on proven fractum locants$` @
~/work/Breccia/Web/imager/notes.brec : for proven locants to use as substitutes
∵ Image-file references are to be discouraged in favour of source-file references.
: e.g. ~/work/Breccia/Web/imager/BreccianFileTranslator.java : `warn_imageFileReference`