diff --git a/.vscode/launch-convert_all.json b/.vscode/launch-convert_all.json index 53242de..b7a2365 100644 --- a/.vscode/launch-convert_all.json +++ b/.vscode/launch-convert_all.json @@ -11,7 +11,7 @@ "program": "${file}", "console": "integratedTerminal", "justMyCode": true, - "args": ["--input", "ext-dict/star_anhviet.tab"], + "args": ["--input_folder", "./ext-dict", "--output_folder", "./ext-output", "--extension", "tab"] } ] } diff --git a/.vscode/launch-tab_stats.json b/.vscode/launch-tab_stats.json index ef710d7..7ee5c00 100644 --- a/.vscode/launch-tab_stats.json +++ b/.vscode/launch-tab_stats.json @@ -8,7 +8,7 @@ "name": "Python: Current File", "type": "python", "request": "launch", - "program": "${file}", + "program": "./bin/tab_stats.py", "console": "integratedTerminal", "justMyCode": true, "args": ["--input", "ext-stardict-vi/ko-vi/star_hanviet.tab"], diff --git a/.vscode/launch.json b/.vscode/launch.json index b7a2365..553e3be 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -5,14 +5,23 @@ "version": "0.2.0", "configurations": [ { - "name": "Python: Current File", - "type": "python", + "type": "rdbg", + "name": "Debug current file with rdbg", "request": "launch", - "program": "${file}", - "console": "integratedTerminal", - "justMyCode": true, - "args": ["--input_folder", "./ext-dict", "--output_folder", "./ext-output", "--extension", "tab"] + "script": "${file}", + "args": ["--from-lang", + "Vietnamese", + "--to-lang Vietnamese", + "--output", + "./ext-output/lingvo/Bach_khoa_toan_thu.dsl", + "./ext-dict/Bach_khoa_toan_thu.tab"], + + "askParameters": false + }, + { + "type": "rdbg", + "name": "Attach with rdbg", + "request": "attach" } ] -} - +} \ No newline at end of file diff --git a/.vscode/rubylaunch.json b/.vscode/rubylaunch.json new file mode 100644 index 0000000..e73d0c4 --- /dev/null +++ b/.vscode/rubylaunch.json @@ -0,0 +1,27 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "rdbg", + "name": "Debug current file with rdbg", + "request": "launch", + "script": "${file}", + "args": ["--from-lang", + "Vietnamese", + "--to-lang Vietnamese", + "--output", + "./ext-output/lingvo/Wikipedia.dsl", + "./ext-dict/Wikipedia.tab"], + + "askParameters": true + }, + { + "type": "rdbg", + "name": "Attach with rdbg", + "request": "attach" + } + ] +} \ No newline at end of file diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..2b27781 --- /dev/null +++ b/Gemfile @@ -0,0 +1,3 @@ +source 'https://rubygems.org' + +gem "debug", require: false diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..885200f --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,20 @@ +GEM + remote: https://rubygems.org/ + specs: + debug (1.6.3) + irb (>= 1.3.6) + reline (>= 0.3.1) + io-console (0.5.11) + irb (1.4.2) + reline (>= 0.3.0) + reline (0.3.1) + io-console (~> 0.5) + +PLATFORMS + x86_64-linux + +DEPENDENCIES + debug + +BUNDLED WITH + 2.3.25 diff --git a/bin/convert_all.py b/bin/convert_all.py index 89ab240..fd2d7c0 100755 --- a/bin/convert_all.py +++ b/bin/convert_all.py @@ -74,8 +74,8 @@ def main() -> None: args, array = parser.parse_known_args() - input_folder = args.input_folder.replace(' ', '\\ ') - output_folder = args.output_folder.replace(' ', '\\ ') + input_folder = args.input_folder.replace(' ', '\\ ') + output_folder = args.output_folder.replace(' ', '\\ ') extension = args.extension metadata = args.metadata diff --git a/bin/install_linux_packages.sh b/bin/install_linux_packages.sh index 9d334a6..0176a7d 100755 --- a/bin/install_linux_packages.sh +++ b/bin/install_linux_packages.sh @@ -1,5 +1,5 @@ #!/bin/bash sudo apt-get install dictzip && -sudo apt install ruby-full - \ No newline at end of file +sudo apt install ruby-full && +sudo gem install bundler debug io-console diff --git a/dsl-tools b/dsl-tools index 66d8407..2c08146 160000 --- a/dsl-tools +++ b/dsl-tools @@ -1 +1 @@ -Subproject commit 66d8407427a4743b0b0447b870f847367ba52ee4 +Subproject commit 2c08146c8feb85406404edfd4ecf3b69aefbb8ca