Comments (11)
Hey @RyotaUshio , I think I am having trouble following why hyphens would be usend instead of their fullwidth equivalent. Could you elaborate on this?
from obsidian-linter.
@pjkaufman Thank you for your attention. To be honest, I'm not sure about the exact reason.
But I'm pretty sure that at least 99% of us Japanese use half-width hyphens -
instead of the full-width β
in this situation.
One reason I've come up with is that the full-width hyphen is much harder or more tedious to type than the half-width hyphen.
This is due to our keyboard layout and the nature of Japanese IMEs.
In my quick test, the full-width one required 7 keystrokes while the half-width one required only one.
from obsidian-linter.
Hey @RyotaUshio , do you think it would make sense to expose the punctuation/symbol list for English letter symbols to check for around the CJK characters?
For example, right now that logic lives here:
Essentially there are two sets of punctuation that are looked at:
- Punctuation/symbols before CJK that are considered to be English:
-+'"([Β₯$]
- Punctuation/symbols after CJK that are considered to be English:
-+;:'"Β°%$)]
Note: I think *
is also checked for, but I think I would keep that hidden since it is a part of a markdown syntax check which could get hairy to try to allow the user to customize.
I can expose these two values as a list of characters to consider to be English when they are found in their respective locations. This would also fix #1036 .
How does that sound? Any suggestions around this?
from obsidian-linter.
A dev note: I will need to handle an empty list to make sure that we do not end up with an empty capture group since I think that is invalid in regex. So I need to handle that to make sure someone does not hose the linter's ability to run by doing that.
from obsidian-linter.
By "expose" do you mean adding a setting to customize the list?
from obsidian-linter.
Yes. Sorry. I forgot to say that it would be a user setting that would be a text box with all of those characters in it that could be edited. It is not a list in the way it would be displayed in the UI.
from obsidian-linter.
I think I have the code ready for this kind of change, but I need to test in Obsidian and with a couple of edge cases to make sure it does not die. Once I do that, I will go ahead and see about making the change. But if you want to give feedback on what I have written above, feel free to do so.
from obsidian-linter.
Thanks for elaborating, it sounds great! I really appreciate your quick work π
from obsidian-linter.
No problem. Today I am trying to knock out some issues and requests before I do the next release and start focusing back on better handling of mass linting operations.
from obsidian-linter.
I have merged the change in question. It should be on master and go out in the next release. It looks to be working, but there may be some issues with it. Feel free to let us know if there are any issues.
from obsidian-linter.
Thank you so much!! From my quick test, it seems to be working perfectly. I'll let you know if I noticed anything.
from obsidian-linter.
Related Issues (20)
- Bug: numbered list markers all become "1." HOT 3
- Bug: preview mode lint of daily note funnnnnky results HOT 4
- Bug: Linter removes the # from the Share Note share_link URL HOT 1
- Bug: Unable to parse url correctly HOT 2
- Bug: i can't insert yaml by using linger HOT 5
- FR: improve YAML key sort to "at Start" and "at End" order
- Button to exclude file/folder from Linter HOT 2
- Question: Copy `ε€ηεΈθ½ mAP\@.5` but the pasted text is `ε€ηεΈθ½ mAP\@`. how to fix it? HOT 3
- FR: Enabling personal additions to auto-correction map HOT 3
- Bug: Smart quotes get applied in Markdown image links HOT 5
- Bug: random deletion of characters/words/line breaks throughout the note HOT 17
- Bug: footnote-after-punctuation fails if reference name contains hyphen
- Question: Custom Command: converting multiple single lines to bullet points HOT 2
- FR: empty line around lists HOT 7
- Bug: Tag Regex Matches Punctuation Like `:` Which Causes Other Problems HOT 4
- Bug: Header capitalization rule does not update link text HOT 2
- FR: Support Obsidian-style comment for inline linter toggle HOT 1
- Bug: "Lint the current File" command failed to execute HOT 4
- Bug: "Move Tags to YAML" breaks when tags have a `/` HOT 5
- Bug: Remove space header when option `RemoveSpaceAroundCharacters` is enabled and Katakata is beginning of the line HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obsidian-linter.