fiatjaf
cf6032ea7b
porn detector.
2024-06-17 15:53:27 -03:00
fiatjaf
4dda52cfb9
use stdlib "slices" and updated eventstore for badger possible fix.
2024-02-08 16:32:08 -03:00
fiatjaf
64e75d98fb
guard against obtuse emoji rendering hack index out of range error.
2024-02-02 20:40:31 -03:00
fiatjaf
a9c84f86d7
cleaner failures when media fails to load or draw.
2024-01-12 11:00:52 -03:00
fiatjaf
8c5fa1aba8
dirty fix for when mainBuffer and emojiBuffer mismatch just so we don't crash.
2024-01-12 10:54:01 -03:00
Daniele Tonon
b44771b0da
Render videos inside the image preview
2024-01-06 01:13:19 +01:00
Daniele Tonon
5e46f10453
Render images inside the image preview
2024-01-06 00:36:53 +01:00
Daniele Tonon
5264f6df2b
Support webp and gif for profile's pic
2024-01-02 16:29:06 +01:00
fiatjaf
6b35b0393f
when highlighting, allow names to have emojis.
2024-01-02 11:11:14 -03:00
fiatjaf
5882462547
hlSkip and stop using @ prefix on names.
2024-01-02 10:06:44 -03:00
fiatjaf
d806cea4d2
fix d1d172b96c, that constant was wrong.
2023-12-31 18:05:47 -03:00
fiatjaf
91a0ea768b
do not use language detector model on dev mode.
...
because it's slow.
2023-12-31 17:50:12 -03:00
fiatjaf
d1d172b96c
match numbers and letters on highlight.
2023-12-31 15:23:32 -03:00
fiatjaf
d85872a1b5
naïve text highlighting.
2023-12-31 14:26:14 -03:00
fiatjaf
46a4891048
use emojiBuffer as the rule and make mainBuffer adapt to it, removing glyphs as necessary.
2023-12-28 16:22:18 -03:00
fiatjaf
f06badf393
trying to remove unused glyphs from mainBuffer since they got merged in emojiBuffer.
2023-12-28 15:39:44 -03:00
fiatjaf
e17b3e2b45
fix emojiMask not working correctly.
...
its index was being reset for each wrapped line thus not corresponding to the actual position in the full paragraph content anymore.
basically if the emojiMask was [false, false, false, true, false] for "abc🔛 d" but that text was split in two lines like:
"abc
🔛 d"
then the emojiMask would be read at 0, 1, 2, then 0, 1.
now that is fixed.
2023-12-28 06:48:14 -03:00
fiatjaf
a500e7bb79
add cyrillic and make latin/unknown be just the fallback, not compete against other scripts in the identification race.
2023-12-27 20:57:45 -03:00
fiatjaf
1a154f57e9
use fiatjaf/emoji for IsEmoji().
2023-12-27 19:19:18 -03:00
fiatjaf
9f30fbeac9
document the mess we made with the font rendering stuff.
2023-12-26 22:16:31 -03:00
fiatjaf
1022fb76fa
successfully mixing in a normal font + the emoji font for some runes only through a myriad of weird hacks.
2023-12-26 22:08:24 -03:00
fiatjaf
9be417fc7c
bring in HarfbuzzShaper into code as a function so we can modify it.
2023-12-26 19:38:27 -03:00
fiatjaf
124dc390d4
basically revert the previous commit.
2023-12-26 11:05:40 -03:00
fiatjaf
86f6a09ea3
using a custom RunIterator that takes emojis into account and shapes them with a different font.
...
it doesn't actually work since the different outputs returned are treated by LineWrapper as necessarily belonging to different lines, so we'll have to do something different.
2023-12-26 11:02:45 -03:00
fiatjaf
b8600ba205
add syriac, hindi, add default language and direction maps based on script.
2023-12-25 23:42:18 -03:00
fiatjaf
28d7a73adf
shorten URLs when rendering text image so they don't use all the space.
2023-12-25 23:27:23 -03:00
fiatjaf
1044c31900
fix script matching bug.
2023-12-25 23:27:23 -03:00
fiatjaf
a7b56f046b
rendering everything with nice script and language detection and font-picking.
2023-12-25 23:27:23 -03:00