An anthology of a variety of tools for the Persian language in Rust

Overview

persian-tools

Test Status Crate

A set of helpers to sanitize, convert or transform information related to Persian language and/or Iran.

Features

Feature Status
National Code Validator Done
Numeric Conversions Done
Persian Content Checks Done
Numeric Ordinal Suffixes Done
Phone Number Done
Regions (Province & City) 🚧 In Progress
Bank-related Helper Functions 🚧 In Progress
Date Conversion 🛑 Not yet

Inspired by the javascript version of persian-tools

Comments
  • Add word to number function.

    Add word to number function.

    fixes https://github.com/rustland-fa/persian-tools-rs/issues/18

    I am still not 100% sure if the logic is correct and there are no edge cases. Like it or not, I didn't really look at the ts example, and started off totally fresh to see what I come up with. I won't be shocked if there are some stupid mistakes in there :D

    A few TODOs left intentionally in the code to raise attention in review. WDYT?

    Lastly, typing Farsi in vscode was not fun, not fun. Yes, I am talking to you https://github.com/microsoft/vscode/issues/86667

    opened by kianenigma 4
  • Transfer the repo to the Persian-Tools organization

    Transfer the repo to the Persian-Tools organization

    Hi @robatipoor

    I suggest you to transfer the repo to the Persian-Tools organization and if you are interested in, let me know to add you into the Organization.

    Wish you all the best. Ali

    opened by ali-master 1
  • Why no issues and contributing guide?

    Why no issues and contributing guide?

    I haven't read much about the prospect of the project in other communication channels, so would be great to create a bunch of issues as good-first-time-issue, and maybe a simple CONTRIBUTING.md. I'd like to help, if possible 👍

    opened by kianenigma 0
  • RTL - 200F

    RTL - 200F

    origin string:

    "wl_service_phone_num" = "هاتف الخدمة:"; "wl_shenzhentong_tip_2" = "‏2. وفقًا لسياسة إدارة البطاقة الخاصة بشركة بطاقة النقل العام، لن يتم رد رسوم طلب البطاقة."; "wl_shenzhentong_tip_3" = "‏3. يُرجى التأكد من أن بطاقتك ما زالت تعمل بشكلٍ سليم وأنك اجتزت مدخل مترو الأنفاق. وإلا، سيتعذّر رد المال للبطاقة."; "wl_return_reason" = "سبب رد المال للبطاقة"; "wl_shenzhentong_tip_1" = "‏1. لا يمكن استرداد البطاقة بعد استرداد الأموال"; "wl_returnCard_retry" = "أعِد الرصيد للبطاقة مجددًا"; "wl_return_tip" = "إشعار رد المال للبطاقة"; "wl_return_info_tip_3" = "‏3. سيتم تقديم معلومات الحساب إلى مقدم خدمة البطاقة بغرض رد رصيد بطاقتك.";

    vsCode show:

    image

    why show the [U+200F] string? how remove it?

    opened by taoyali 0
  • Add switch_to_persian_key and switch_to_english_key

    Add switch_to_persian_key and switch_to_english_key

    Converts English chars to their equivalent Persian char on keyboard.

    "sghl ]i ofv ?".switch_to_persian_key(); // "سلام چه خبر ؟"
    

    Converts Persian chars to their equivalent English char on keyboard.

    "اثغ صاشفس عح ؟".switch_to_english_key(); // "hey whats up ?"
    
    opened by sina-devel 0
Owner
null
A lightweight web framework built on hyper, implemented in Rust language.

Sapper Sapper, a lightweight web framework, written in Rust. Sapper focuses on ergonomic usage and rapid development. It can work with stable Rust. Sa

Daogang Tang 622 Oct 27, 2022
The purpose of this example is to provide details as to how one would go about using GraphQL with the Rust Language.

Zero to GraphQL Using Rust The purpose of this example is to provide details as to how one would go about using GraphQL with the Rust Language. Thus,

Conrad Taylor 1 Jan 7, 2022
web browser as a language server

web-browser-lsp A toy program that implements a text-based web browser as a language server. Motivation My favorite progrmming tools are neovim, tmux

octaltree 17 Nov 24, 2022
handle some lichess.org/tournament load with rust, while learning rust

lila-http Take some of the HTTP load away from lila. WIP! Arena tournaments Clients connected to a tournament page request new data about the tourname

Thibault Duplessis 22 Jan 2, 2023
Simple http server in Rust (Windows/Mac/Linux)

How it looks like? Screenshot Command Line Arguments Simple HTTP(s) Server 0.6.1 USAGE: simple-http-server [FLAGS] [OPTIONS] [--] [root] FLAGS:

LinFeng Qian 788 Dec 28, 2022
Rust / Hasura / GraphQL

Rust + Hasura This is an example of a Rust server that functions as a remote schema for Hasura. It demonstrates: user login + signup JWT authorization

Rónán 130 Dec 26, 2022
Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.

Actix Web Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust Features Supports HTTP/1.x and HTTP/2 Streaming and pipelining

Actix 16.3k Jan 8, 2023
An HTTP library for Rust

hyper A fast and correct HTTP implementation for Rust. HTTP/1 and HTTP/2 Asynchronous design Leading in performance Tested and correct Extensive produ

null 11k Jan 7, 2023
JSON Web Token implementation in Rust.

Frank JWT Implementation of JSON Web Tokens in Rust. Algorithms and features supported HS256 HS384 HS512 RS256 RS384 RS512 ES256 ES384 ES512 Sign Veri

Alex Maslakov 246 Dec 27, 2022
Rust templating with Handlebars

handlebars-rust Handlebars templating language implemented in Rust and for Rust. Handlebars-rust is the template engine that renders the official Rust

Ning Sun 923 Dec 29, 2022
An Extensible, Concurrent Web Framework for Rust

Iron Extensible, Concurrency Focused Web Development in Rust. Response Timer Example Note: This example works with the current iron code in this repos

null 6.1k Dec 27, 2022
GraphQL server library for Rust

GraphQL server library for Rust GraphQL is a data query language developed by Facebook intended to serve mobile and web application frontends. Juniper

GraphQL Rust 4.9k Jan 5, 2023
An expressjs inspired web framework for Rust

nickel.rs nickel.rs is a simple and lightweight foundation for web applications written in Rust. Its API is inspired by the popular express framework

null 3k Jan 3, 2023
[OUTDATED] A light HTTP framework for Rust

Rustful A light HTTP framework for Rust, with REST-like features. The main purpose of Rustful is to create a simple, modular and non-intrusive foundat

Erik Hedvall 873 Nov 12, 2022
A web framework for Rust.

Rocket Rocket is an async web framework for Rust with a focus on usability, security, extensibility, and speed. #[macro_use] extern crate rocket; #[g

Sergio Benitez 19.5k Jan 8, 2023
REST-like API micro-framework for Rust. Works with Iron.

Table of Contents What is Rustless? Usage warning Basic Usage Complex example Mounting Parameters validation and coercion Use JSON Schema Query string

Rustless 610 Jan 4, 2023
Low level HTTP server library in Rust

tiny-http Documentation Tiny but strong HTTP server in Rust. Its main objectives are to be 100% compliant with the HTTP standard and to provide an eas

null 785 Dec 29, 2022
Web framework in Rust

Rouille, a Rust web micro-framework Rouille is a micro-web-framework library. It creates a listening socket and parses incoming HTTP requests from cli

Pierre Krieger 840 Jan 1, 2023
A fast, boilerplate free, web framework for Rust

Tower Web A web framework for Rust with a focus on removing boilerplate. API Documentation Tower Web is: Fast: Fully asynchronous, built on Tokio and

Carl Lerche 969 Dec 22, 2022