◆ [Date updated: 2024/06/06(Thu) 05:01:43]
■I made a userscript that adds a button that formats your post with line breaks! ヽ(´∇`)ノ
│https://greasyfork.org/en/scripts/461325-ayashii-breaker
│
├■This is awesome, arigatou! ヽ(´∇`)ノ
││
││I've modified it for myself so it limits to 72 characters, but is there
││a way I can disable the hyphenation? It's a little aggressive as is,
││and I prefer to do it manually since there's a lot of little rules for
││proper hyphenation that go beyond the scope of a simple script (;^Д^)
││
││https://english.stackexchange.com/questions/385/what-are-the-rules-for-splitting-words-at-the-end-of-a-line
││
│└■Sure, just get rid of lines 27-29. Also wow, I didn't know how complicated hyphenation rules were (;゚∀゚)
│ │
│ └■Hmm, it still seems to break in the middle of words, just without the
│ │hyphens. I think it would maek moar sense to break after the nearest
│ │space before the end of the line, which is how I manually do it
│ │
│ └■Oh yea. I can make it do that, I'll try getting to it later today
│ │
│ └■Done! ヽ(´∇`)ノ
│ │Reinstall through here and it should work. Also changed the default maximum length to 80 characters.
│ │https://greasyfork.org/en/scripts/461325-ayashii-breaker
│ │
│ └■
│ │
│ │Awesoem!
│ │
│ │However, when I test it, the line lengths seem inconsistant - perhaps
│ │it's not including spaces in the character count or something. I'm able
│ │to get lines as long as 162ch using "a a a a a [...]" (´~`)
│ │
│ └■Ah, I think I know the problem.
│ It's not counting the spaces in-between the words for the line length (;゚∀゚)
│ I'm busy at the moment, but when I have time I'll fix that
│
└■User: kaguya
│Thank you!!! ヽ(´ー`)ノ
│After you look into breaking in middle of words, I will add it on
│the template then.
│
│Maybe with such a tool, we can gradually remove the CSS that breaks
│the lines on smaller displays for the sake of big AA and adhering
│to original Ayashii World sites ( ´ω`)
│
└■User: kaguya
│Removed the tutorial CSS. Properly breaking the lines is a more
│important etiquette now, let's see how it goes ヽ(´ー`)ノ
│
└■Disable auto-wrapping in the textarea too, and make the text area a bit
│taller by default.
│Disabling the auto-wrap would make it immediately obvious to the poster
│that their text is too wide.
│
│Something like:
│<textarea wrap="off" rows="25" cols="74" name="v" accesskey="4"
│maxlength="10000" placeholder="" title="Alt(+Shift)+4" id="contents1">
│
│'wrap' isn't a valid property in html5 but fuck that shit, every browser
│supports it and has done so forever.
│I think the correct modern way is with
│white-space: pre;
│in the CSS attached to the textarea, but that naturally doesn't work in
│non-CSS browsers (which might reasonably be using ayashii, it is
│inherently a web1.0 place). ヽ(´∇`)ノ
│
├■User: kaguya
││I applied wrap="off" but reverted it, it seems inconvenient for those
││who write their messages in the box, proofread it & edit parts of it,
││and lastly press the "Make line breaks" buttan just before sending their
││posts (´Д`)
││
│└■I guess that's fair... ヽ(´-`)ノ
│
└■The script we're using is more "modernized" than others - it does make
use of CSS rather than doing everything with ye-olde-browser-compatible
HTML spaghetti (;^Д^)
Return