Closed assopri closed 2 years ago
the similar feature already works here (when click on particular header):
HI, if you look into run.sh
, you will see that obsidian-export
is used to parse your Obsidian Markdown files. It handles all the link and URL generation according to the filenames. You can add a script before that step to convert your file names (and all associated links) but it might be easier to just set the filenames in Obsidian in lat and convert them to cyrillic in convert.py
.
To convert filename in lat to article title in cyrillic, see write_frontmatters
in convert.py
, just change the way title
is parsed.
As for why it works for heading links, see filter_lines
in convert.py
, I assume Python's string decoding handled that.
Thank you for the detailed responce!!
HI, if you look into
run.sh
, you will see thatobsidian-export
is used to parse your Obsidian Markdown files. It handles all the link and URL generation according to the filenames. You can add a script before that step to convert your file names (and all associated links) but it might be easier to just set the filenames in Obsidian in lat and convert them to cyrillic inconvert.py
.To convert filename in lat to article title in cyrillic, see
write_frontmatters
inconvert.py
, just change the waytitle
is parsed.As for why it works for heading links, see
filter_lines
inconvert.py
, I assume Python's string decoding handled that.
It`s a nice solution for cyrillic symbols, however I still face another issue = the spaces in filename are not replaced with dashes: https://peteryuen.netlify.app/docs/programming/python**%20**advanced**%20**typings/ . Can I somehow override the default URL generation mechanics of obsidian-export (to change spaces to dashes)?
For that you can probably try turning on slugify.paths
in config.toml
. I think that is on Zola's part. I forgot why I disabled it, maybe it caused some bugs but you can try it haha.
Cool! Slugify paths solved both issue of spaces and cyrillyc to lat characters. If you remind what can go wrong with it - let me know)))
I found what happens. Even if slugify paths is on, urls in links still use default url generation format:
any ideas how can I fix that?
You can probably just replace spaces with dashes in replaced_links
.
Hi! I forked repositary and want to change cyrillic symbols to lat generating article name. Which script is responcible for generating ther article URL?