readme changes

This commit is contained in:
leca 2024-04-10 22:14:29 +03:00
parent 5fa5c5e3a7
commit 7dc2089baf
2 changed files with 24 additions and 31 deletions

View File

@ -4,28 +4,28 @@ This project pursues few aims:
2. I'd like to learn gtk 2. I'd like to learn gtk
3. I'd like to learn japanese 3. I'd like to learn japanese
4. I'd like to help others 4. I'd like to help others
I am learning japanese as well. I'm not native japanese speaker and even don't speak japanese at all.
I just think that there's a good way to learn languages and I'd like to try program these ways
to master my own skills and probably help others.
## building
To build this on GNU/Linux
### 1.Install dependencies for your distro:
Everything, starting with ``$`` should be run as usual user without that sign. ``#`` in the start indicated that root is necessary.
#### Arch linux:
``# sudo pacman -S glib2 rust``
#### Debian and derivatives:
``# sudo apt install libgtk-4-dev build-essential cargo``
### 2.Build it:
```
cargo build
```
then, run it:
```
$ cargo run
```
#### Windows
Windows sucks.
## Contributing
Contributing is welcome! Please, make an issue if you found a bug.
Ideas are welcomed as well!
I am learning japanese as well. I'm not native japanese speaker and even don't speak japanese at all.
I just think that there's a good way to learn languages and I'd like to try program these ways to master my own skills and probably help others.
## Building
### To build this on GNU/Linux
#### 1.Install dependencies for your distro:
Everything, starting with ``$`` should be run as usual user without that sign. ``#`` in the start indicated that root is necessary.
Arch linux: `# sudo pacman -S glib2 rust`,
Debian and derivatives: `# sudo apt install libgtk-4-dev build-essential cargo`,
Fedora: `# sudo dnf install gtk4-devel gcc`.
#### 2.Build it:
Build: `$ cargo build`,
then, run an application: `$ cargo run`.
Application saves all data in $HOME/.config/learn-hieroglyph.
### To build this on Windows
I am not using Windows, so I have no idea how to install dependencies for it, fuck with that by yourself (or use a normal operating system ;) ) I am planning to cross-compile binaries for Windows.
Application saves all data in %APPDATA%/learn-hieroglyph.
## Contributing
Contributing is welcome! Please, make an issue if you found a bug. Ideas are welcomed as well!

View File

@ -25,19 +25,12 @@ impl GuessingScene {
} }
pub fn read_settings(&self) { pub fn read_settings(&self) {
println!("reading settings");
let settings = Settings::new(APP_ID); let settings = Settings::new(APP_ID);
println!("before hiragana: {}", *self.imp().hiragana.borrow());
println!("before katakana: {}", *self.imp().katakana.borrow());
*self.imp().ktr.borrow_mut() = settings.boolean("is-ktr-enabled"); *self.imp().ktr.borrow_mut() = settings.boolean("is-ktr-enabled");
*self.imp().rtk.borrow_mut() = settings.boolean("is-rtk-enabled"); *self.imp().rtk.borrow_mut() = settings.boolean("is-rtk-enabled");
*self.imp().hiragana.borrow_mut() = settings.boolean("is-hiragana-enabled"); *self.imp().hiragana.borrow_mut() = settings.boolean("is-hiragana-enabled");
*self.imp().katakana.borrow_mut() = settings.boolean("is-katakana-enabled"); *self.imp().katakana.borrow_mut() = settings.boolean("is-katakana-enabled");
println!("after hiragana: {}", *self.imp().hiragana.borrow());
println!("after katakana: {}", *self.imp().katakana.borrow());
} }
pub fn init(&self) { pub fn init(&self) {