Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switching Option of Full-Width Katakana and Half-Width Katakana #358

Open
Takym opened this issue Nov 11, 2022 · 9 comments
Open

Switching Option of Full-Width Katakana and Half-Width Katakana #358

Takym opened this issue Nov 11, 2022 · 9 comments

Comments

@Takym
Copy link
Contributor

Takym commented Nov 11, 2022

My PR #272 replaces all half-width katakanas with full-width katakanas because the full-width one is more readable. However, this software also shows how did it work in the 1990s. So, I think providing an option to switch is nice for users. The full-width one is for readability, and the half-width one is for learning the historical way.

@Takym
Copy link
Contributor Author

Takym commented Nov 11, 2022

The idea of using half-width katakanas instead of full-width is suggested in #272 (comment)
Thanks

@schinagl
Copy link
Contributor

The current e.g Explorer uses half or full width?

@Takym
Copy link
Contributor Author

Takym commented Nov 11, 2022

Currently, most of the software and documents use full-width. The half-width katakanas were introduced for legacy computers because Japanese characters are in large quantities.

@tokomio-sun
Copy link
Contributor

I disagree with adding an option to switch between half-width and full-width katakanas.
The reason is that maintaining two japanese-language resource files with little difference.

I think it is better to use full-width katakanas,
because this branche's source codes are new Windows File Manager and no longer 90's (WindowsNT 4.0) version. (example OLE drag/drop support)

@Takym
Copy link
Contributor Author

Takym commented Nov 13, 2022

I think adding two variants (full-width and half-width katakanas) of language resources can be a low-maintenance cost by an automating tool like the one below:
https://github.com/Takym/winfile/tree/Japanese_Hankaku/tools/ConvertFromFullWidthToHalfWidth
This tool replaces all full-width katakanas with half-width. So, you only need to update the full-width one.

@clzls
Copy link
Contributor

clzls commented Nov 14, 2022

I think adding two variants (full-width and half-width katakanas) of language resources can be a low-maintenance cost by an automating tool like the one below: https://github.com/Takym/winfile/tree/Japanese_Hankaku/tools/ConvertFromFullWidthToHalfWidth This tool replaces all full-width katakanas with half-width. So, you only need to update the full-width one.

Besides the correctness, what about a PowerScript equivalence? 😄 (maybe 7.x only though. Add locale id of ja-JP for multilingual systems. But this code seems to be working only on computers with Japanese language pack installed...)

using namespace Microsoft.VisualBasic
[System.Text.Encoding]::RegisterProvider([System.Text.CodePagesEncodingProvider]::Instance)
[Strings]::StrConv('キャンセル取消すキャンセル', [VbStrConv]::Narrow, 0x0411)

@Takym
Copy link
Contributor Author

Takym commented Nov 15, 2022

@clzls

Besides the correctness, what about a PowerScript equivalence?

Yes, it seems good. I will port the conversion tool to PowerShell.

But this code seems to be working only on computers with Japanese language pack installed...

Thank you for telling me that Strings.StrConv does not work in non-Japanese environments. But I'm sorry, I have no idea how to fix it.

@Takym
Copy link
Contributor Author

Takym commented Nov 15, 2022

I have ported the conversion tool to PowerShell:
https://github.com/Takym/winfile/blob/Japanese_Hankaku/tools/ConvertFromFullWidthToHalfWidth.ps1

I used the pwsh command to run PowerShell 7.3.

@clzls
Copy link
Contributor

clzls commented Jun 4, 2023

The idea of using half-width katakanas instead of full-width is suggested in #272 (comment) Thanks

I give up that thought now. Let's say hello to full-width Katakana, since original_plus or any customized fork would serve the needs, because one can easily make a fork with old-fashioned half-width Katakana themselves using the script.

Maybe it is the time to establish a community agreement for ja-JP translations based on this issue now. (Since everyone here now agree with it...?)

Thank you for telling me that Strings.StrConv does not work in non-Japanese environments. But I'm sorry, I have no idea how to fix it.

Windows Japanese language pack is nothing other than a regular dependency of the script. Done 😄 (I have Japanese language pack installed, and I'm in Chinese environment, it worked fine.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants