The following warnings occurred:
Warning [2] Undefined variable $can_link - Line: 6 - File: showthread.php(1658) : eval()'d code PHP 8.5.12 (Linux)
File Line Function
/inc/class_error.php 157 errorHandler->error
/showthread.php(1658) : eval()'d code 6 errorHandler->error_callback
/showthread.php 1658 eval




[Other]  Uncertain spaces crowdsourced research
#3
(30-11-2026, 01:11 PM)Koen G wrote: You are not allowed to view links. Register or Login to view.the crowd follows the 11px rule: wider gaps are considered word separators.

How do you define the width of a space generally? It is not the horizontal interval between word bounding boxes (can be negative even when a gap remains) so I suppose something like: how many pixels you can move (horizontally) the pixels (with any ink on them) of the previous word (or glyph) to the right without hitting the pixels of the next word (or glyph)?

I am thinking about how to optimize a workflow to get a standard space measurement everywhere, including small gaps that were never categorized as spaces in transliterations. First I run a local contrast enhancement filter to get the same contrast everywhere including areas with a dark background, then I make a binary bitmap at 50% lightness cutoff, then I de-speckle it (destructive process on thin lines, unfortunately), finally I paint the text with a large colored brush (the color and layer match the EVA character: actually I need a different layer for each glyph but that step can be mostly automated) using the previously de-speckled bitmap as a mask (no need to paint every pixel accurately, a few clicks with a large brush or flood fill does it in most cases).

It took me far too long to do a single page so I am looking for faster alternatives. Smile

   
[+] 4 users say Thank You to nablator for this post
Reply


Messages In This Thread
RE: Uncertain spaces crowdsourced research - by nablator - 30-11-2026, 01:43 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)