Coder Social home page Coder Social logo

mariinkys / oboete Goto Github PK

View Code? Open in Web Editor NEW
24.0 2.0 1.0 700 KB

A simple flashcards application for the COSMIC™ desktop written in Rust

License: GNU General Public License v3.0

Just 1.82% Rust 93.31% FreeMarker 4.87%
cosmic flashcards libcosmic rust studying

oboete's Introduction


Oboete

Flathub Version Flathub Downloads GitHub License GitHub Repo stars

A simple flashcards application for the COSMIC™ desktop

Main Window Dark Folder Window Dark Study Window Dark



Download on Flathub

Notes

This application has been made thanks to the libcosmic Documentation and edfloreshz application template and examples.

This project is related to my other flashcard project, if you want Chinese or Japanese flashcards you can check it out!

Warning

Right now RTL languages are not well supported, please take a loot at #6 for more information

Anki Importing Support

Please Look at: ANKI_IMPORTING

Installation

git clone https://github.com/mariinkys/oboete.git
cd oboete
cargo build --release
sudo just install

Development Notes

In order to build the Flatpak, first you need to create the 'cargo-sources.json' file, for that we'll use this python script, from flatpak-builder-tools, remember that the 'toml' and 'aiohttp' python modules are needed (they can be installed with pip).

Once you have that, with the python script in the root of the project, you can start with:

python3 flatpak-cargo-generator.py Cargo.lock -o cargo-sources.json

This will create the needed 'cargo-sources.json' file. Then you already can build and install the Flatpak with:

flatpak-builder --user --install --force-clean build-dir dev.mariinkys.Oboete.json

You can also build the Flatpak and not install it with:

flatpak-builder --force-clean build-dir dev.mariinkys.Oboete.json

Useful resources include: Flatpak Docs. Remember that whenever the dependencies change/are updated the 'cargo-sources.json' file needs to be rebuilt.

Copyright and Licensing

Copyright 2024 © Alex Marín

Released under the terms of the GPL-3.0

oboete's People

Contributors

albanobattistella avatar mariinkys avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

oboete's Issues

(FLATPAK) - Some Languages display TOFU Characters

For some reason, even though that Flatpak is mounting the fonts correctly, which you can verify by running:

flatpak run --command=ls dev.mariinkys.Oboete -lA /run/host/user-fonts

(You should see your fonts here, for example you CJK fonts meant to display Chinese or Japanese).

The application still renders Tofu characters.

In order to fix this, you will need to create a directory in your home folder called .fonts; For example, if your username is 'coco' the path to the folder should be /home/coco/.fonts.

Once you have the directory you must copy the font of the language you are having trouble with to the .fonts directory, I usually download the Noto fonts from Google, for example the Japanese and Chinese ones. Just a single 'regular' file is required.

Then you'll need to install and open Flatseal, search for Oboete and add permission to ~/.fonts as shown in the image.

flatseal-instructions

The issue should be fixed now! I still don't understand why this happens, talking with some people at Flathub the issue seems to be on my/your end since the fonts we're being mounted correctly by Flatpak since the beginning. Any insight on this is greatly appreciated.

Study page spacing makes RTL languages invisible

Bug

I tried adding a studyset for the arabic langauge, in an attempt to learn the alphabet. I discovered however that the characters were never shown when you press "study".

Behavior

This screenshot shows what the study page looks like, easily reproducible by just adding an arabic character like ت to any studyset.
screenshot-2024-07-12-08-56-27

Possible solution

The following screenshot shows the same page, but with the spacing (margin and padding) removed from the study page. That makes the character show up in the top right.
screenshot-2024-07-12-08-55-42
This indicates to me that the issue is with the spacing pushing rtl languages out of the visible area.

System

In case it is of any use, my system consists of an HP 87E1 laptop, sporting an i5 1135g7 CPU and an iris XE igpu. It has 8gb of RAM and a 250GB ssd. It runs Pop!_os 22.04 LTS.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.