[NMP v3.xx] BP-Neutrino image arabic language

Wird blind mitgebaut, ich habe diesen Receiver nicht.
Benutzeravatar
BPanther
Administrator
Administrator
Beiträge: 10394
Registriert: Do 11. Jan 2007, 00:06
Wohnort: Berlin
Hat sich bedankt: 141 Mal
Danksagung erhalten: 188 Mal
Kontaktdaten:

Re: BP-Neutrino image arabic language

#46

Beitrag von BPanther » Sa 24. Feb 2018, 23:38

Ahhh... I have found the keyboard... It is hardcoded at neutrino, this file -> https://github.com/Duckbox-Developers/n ... ut.cpp#L44

You need to create a new keyboard block for your language. Here english (renamed to arabic), so you can change this to arabic.
  1. static std::string keys_arabic[2][KEY_ROWS][KEY_COLUMNS] =
  2. {
  3.     {
  4.         { "`", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-",  "=",  "§"  },
  5.         { "q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "[",  "]",  "{", "}"  },
  6.         { "a", "s", "d", "f", "g", "h", "j", "k", "l", ";", "\'", "\\", ":", "\"" },
  7.         { "z", "x", "c", "v", "b", "n", "m", ",", ".", "/", "<",  ">",  "?", " "  }
  8.     },
  9.     {
  10.         { "~", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "_",  "+",  "§", },
  11.         { "Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P", "{",  "}",  "{", "}"  },
  12.         { "A", "S", "D", "F", "G", "H", "J", "K", "L", ";", "\'", "\\", ":", "\"" },
  13.         { "Z", "X", "C", "V", "B", "N", "M", ",", ".", "/", "<",  ">",  "?", " "  }
  14.     }
  15. };
Please change the key fields only, do not add new or remove any fields.
MfG BPanther
KEIN SUPPORT PER PN -> Bitte das Forum nutzen und das Wiki lesen.


Bild Bild
Thx udog für das Bild.
TV: Sony Bravia KDL-46HX755, Sony Bravia KDL-40W4500 (old)
Boxen mit NMP: 7x UFS910 (128MB), UFS912, 2x UFS913, AV700, AV7000, AV7500 (DVB-S/C/T), Edision Argus Pingulux, Vizyon820HD,
3x AX 4K HD51 (E2-OATV, NMP-DDT, DVB-S/SX/C/T), VU+DUO (E2-OATV), VU+Solo4K (DVB-S (FBC)/C/T (DUAL))

Benutzeravatar
mohasoli
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 59
Registriert: Sa 10. Feb 2018, 16:37
Hat sich bedankt: 17 Mal
Danksagung erhalten: 8 Mal

Re: BP-Neutrino image arabic language

#47

Beitrag von mohasoli » So 25. Feb 2018, 21:39

BPanther hat geschrieben:
Sa 24. Feb 2018, 23:38
Ahhh... I have found the keyboard... It is hardcoded at neutrino, this file -> https://github.com/Duckbox-Developers/n ... ut.cpp#L44

You need to create a new keyboard block for your language. Here english (renamed to arabic), so you can change this to arabic.
  1. static std::string keys_arabic[2][KEY_ROWS][KEY_COLUMNS] =
  2. {
  3.     {
  4.         { "`", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-",  "=",  "§"  },
  5.         { "q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "[",  "]",  "{", "}"  },
  6.         { "a", "s", "d", "f", "g", "h", "j", "k", "l", ";", "\'", "\\", ":", "\"" },
  7.         { "z", "x", "c", "v", "b", "n", "m", ",", ".", "/", "<",  ">",  "?", " "  }
  8.     },
  9.     {
  10.         { "~", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "_",  "+",  "§", },
  11.         { "Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P", "{",  "}",  "{", "}"  },
  12.         { "A", "S", "D", "F", "G", "H", "J", "K", "L", ";", "\'", "\\", ":", "\"" },
  13.         { "Z", "X", "C", "V", "B", "N", "M", ",", ".", "/", "<",  ">",  "?", " "  }
  14.     }
  15. };
Please change the key fields only, do not add new or remove any fields.

Code: Alles auswählen

[Cbx=cpp]static std::string keys_arabic[2][KEY_ROWS][KEY_COLUMNS] =
{
	{
		{ "`", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-",  "=",  "§"  },
		{ "ض", "ص", "ث", "ق", "ف", "غ", "ع", "ه", "خ", "ح", "ج",  "د",  "{", "}"  },
		{ "ش", "س", "ي", "ب", "ل", "ا", "ت", "ن", "م", "ك", "ط'", "ذ", ":", "\"" },
		{ "ئ", "ء", "ؤ", "ر", "لا", "ى", "ة", "و", "ز", "ظ", "<",  ">",  "?", " "  }
	};
};[/Cbx]
Bild

Benutzeravatar
mohasoli
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 59
Registriert: Sa 10. Feb 2018, 16:37
Hat sich bedankt: 17 Mal
Danksagung erhalten: 8 Mal

Re: BP-Neutrino image arabic language

#48

Beitrag von mohasoli » So 25. Feb 2018, 21:53

mohasoli hat geschrieben:
So 25. Feb 2018, 21:39
BPanther hat geschrieben:
Sa 24. Feb 2018, 23:38
Ahhh... I have found the keyboard... It is hardcoded at neutrino, this file -> https://github.com/Duckbox-Developers/n ... ut.cpp#L44

You need to create a new keyboard block for your language. Here english (renamed to arabic), so you can change this to arabic.
  1. static std::string keys_arabic[2][KEY_ROWS][KEY_COLUMNS] =
  2. {
  3.     {
  4.         { "`", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-",  "=",  "§"  },
  5.         { "q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "[",  "]",  "{", "}"  },
  6.         { "a", "s", "d", "f", "g", "h", "j", "k", "l", ";", "\'", "\\", ":", "\"" },
  7.         { "z", "x", "c", "v", "b", "n", "m", ",", ".", "/", "<",  ">",  "?", " "  }
  8.     },
  9.     {
  10.         { "~", "!", "@", "#", "$", "%", "^", "&", "*", "(", ")", "_",  "+",  "§", },
  11.         { "Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P", "{",  "}",  "{", "}"  },
  12.         { "A", "S", "D", "F", "G", "H", "J", "K", "L", ";", "\'", "\\", ":", "\"" },
  13.         { "Z", "X", "C", "V", "B", "N", "M", ",", ".", "/", "<",  ">",  "?", " "  }
  14.     }
  15. };
Please change the key fields only, do not add new or remove any fields.

Code: Alles auswählen

[Cbx=cpp]static std::string keys_arabic[2][KEY_ROWS][KEY_COLUMNS] =
{
	{
		{ "`", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-",  "=",  "§"  },
		{ "ض", "ص", "ث", "ق", "ف", "غ", "ع", "ه", "خ", "ح", "ج",  "د",  "{", "}"  },
		{ "ش", "س", "ي", "ب", "ل", "ا", "ت", "ن", "م", "ك", "ط'", "ذ", ":", "\"" },
		{ "ئ", "ء", "ؤ", "ر", "لا", "ى", "ة", "و", "ز", "ظ", "<",  ">",  "?", " "  }
	};
};[/Cbx]
OK
But where is this code placed?
Bild

Benutzeravatar
BPanther
Administrator
Administrator
Beiträge: 10394
Registriert: Do 11. Jan 2007, 00:06
Wohnort: Berlin
Hat sich bedankt: 141 Mal
Danksagung erhalten: 188 Mal
Kontaktdaten:

Re: BP-Neutrino image arabic language

#49

Beitrag von BPanther » So 25. Feb 2018, 23:23

The keys are placed at neutrino itself - fix, hardcoded.

Here a test picture. Is this right?
arabic_keyboard.png
Has the arabic font no upper and lower case? If not, i must duplicate this, because there are 2 keyboard layouts for upper and lower case used...

BUT: The direction of the input chars are wrong, will be still left to right. Sorry, but this won't work, because all input fields must be rewritten for the "reverse" direction. You should use the english keyboard...
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
MfG BPanther
KEIN SUPPORT PER PN -> Bitte das Forum nutzen und das Wiki lesen.


Bild Bild
Thx udog für das Bild.
TV: Sony Bravia KDL-46HX755, Sony Bravia KDL-40W4500 (old)
Boxen mit NMP: 7x UFS910 (128MB), UFS912, 2x UFS913, AV700, AV7000, AV7500 (DVB-S/C/T), Edision Argus Pingulux, Vizyon820HD,
3x AX 4K HD51 (E2-OATV, NMP-DDT, DVB-S/SX/C/T), VU+DUO (E2-OATV), VU+Solo4K (DVB-S (FBC)/C/T (DUAL))

Benutzeravatar
mohasoli
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 59
Registriert: Sa 10. Feb 2018, 16:37
Hat sich bedankt: 17 Mal
Danksagung erhalten: 8 Mal

Re: BP-Neutrino image arabic language

#50

Beitrag von mohasoli » Mo 26. Feb 2018, 18:14

BPanther hat geschrieben:
So 25. Feb 2018, 23:23
The keys are placed at neutrino itself - fix, hardcoded.

Here a test picture. Is this right?
arabic_keyboard.png

Has the arabic font no upper and lower case? If not, i must duplicate this, because there are 2 keyboard layouts for upper and lower case used...

BUT: The direction of the input chars are wrong, will be still left to right. Sorry, but this won't work, because all input fields must be rewritten for the "reverse" direction. You should use the english keyboard...
OK
The keyboard is correct
But a simple modification to one letter
Correct code attachment

Code: Alles auswählen

[Cbx=cpp]static std::string keys_arabic[2][KEY_ROWS][KEY_COLUMNS] =
{
	{
		{ "`", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-",  "=",  "§"  },
		{ "ض", "ص", "ث", "ق", "ف", "غ", "ع", "ه", "خ", "ح", "ج",  "د",  "{", "}"  },
		{ "ش", "س", "ي", "ب", "ل", "ا", "ت", "ن", "م", "ك", "ط", "ذ", ":", "\"" },
		{ "ئ", "ء", "ؤ", "ر", "لا", "ى", "ة", "و", "ز", "ظ", "<",  ">",  "?", " "  }
	};
	
	{
		{ "`", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "-",  "=",  "§"  },
		{ "ض", "ص", "ث", "ق", "ف", "غ", "ع", "ه", "خ", "ح", "ج",  "د",  "{", "}"  },
		{ "ش", "س", "ي", "ب", "ل", "ا", "ت", "ن", "م", "ك", "ط", "ذ", ":", "\"" },
		{ "ئ", "ء", "ؤ", "ر", "لا", "ى", "ة", "و", "ز", "ظ", "<",  ">",  "?", " "  }
	};
};[/Cbx]
the arabic font no upper and lower case ' it is one case
Bild

Benutzeravatar
mohasoli
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 59
Registriert: Sa 10. Feb 2018, 16:37
Hat sich bedankt: 17 Mal
Danksagung erhalten: 8 Mal

Re: BP-Neutrino image arabic language

#51

Beitrag von mohasoli » Mo 26. Feb 2018, 18:18

But the direction of writing in the Arabic language has to be changed from right to left
Bild

Benutzeravatar
mohasoli
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 59
Registriert: Sa 10. Feb 2018, 16:37
Hat sich bedankt: 17 Mal
Danksagung erhalten: 8 Mal

Re: BP-Neutrino image arabic-lang.

#52

Beitrag von mohasoli » Mo 26. Feb 2018, 20:09

DboxOldie hat geschrieben:
So 18. Feb 2018, 19:55
Which keyboard files do you mean ??
We want the image to be supported for writing in Arabic
To search on YouTube and the like
Bild

Benutzeravatar
BPanther
Administrator
Administrator
Beiträge: 10394
Registriert: Do 11. Jan 2007, 00:06
Wohnort: Berlin
Hat sich bedankt: 141 Mal
Danksagung erhalten: 188 Mal
Kontaktdaten:

Re: BP-Neutrino image arabic language

#53

Beitrag von BPanther » Mo 26. Feb 2018, 22:05

As I trying to write, this is currently not possible. Nothing in neutrino can switch the direction for the input fields, and I can't do this - sorry. I will check in the keyboard (see picture if correct) to the GIT, but deactivated until a change for the font direction is done.

New picture added...
screenshot_26-02-18.png
Du hast keine ausreichende Berechtigung, um die Dateianhänge dieses Beitrags anzusehen.
MfG BPanther
KEIN SUPPORT PER PN -> Bitte das Forum nutzen und das Wiki lesen.


Bild Bild
Thx udog für das Bild.
TV: Sony Bravia KDL-46HX755, Sony Bravia KDL-40W4500 (old)
Boxen mit NMP: 7x UFS910 (128MB), UFS912, 2x UFS913, AV700, AV7000, AV7500 (DVB-S/C/T), Edision Argus Pingulux, Vizyon820HD,
3x AX 4K HD51 (E2-OATV, NMP-DDT, DVB-S/SX/C/T), VU+DUO (E2-OATV), VU+Solo4K (DVB-S (FBC)/C/T (DUAL))

thomas
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 283
Registriert: Mo 13. Feb 2012, 18:35
Hat sich bedankt: 59 Mal
Danksagung erhalten: 24 Mal

Re: BP-Neutrino image arabic language

#54

Beitrag von thomas » Mo 26. Feb 2018, 22:21

bp sie müssen halt einfach ihr suchbegriff eintippen - egal ob lins rechts - wichtig ist nur der engetippte suchbegriff und youtube es dann findet

Benutzeravatar
BPanther
Administrator
Administrator
Beiträge: 10394
Registriert: Do 11. Jan 2007, 00:06
Wohnort: Berlin
Hat sich bedankt: 141 Mal
Danksagung erhalten: 188 Mal
Kontaktdaten:

Re: BP-Neutrino image arabic language

#55

Beitrag von BPanther » Mo 26. Feb 2018, 22:27

Naja, ich kann sie da schon verstehen. Wäre ja so, als wenn Du alles rückwärts schreiben müsstest. Nur in Neutrino ist nichts darauf vorbereitet, das geht halt nicht so ohne weiteres. Dazu muß zuviel umgestellt werden und ich wüßte da auch nicht, wie man das realisieren sollte, damit es kompatibel bleibt.
MfG BPanther
KEIN SUPPORT PER PN -> Bitte das Forum nutzen und das Wiki lesen.


Bild Bild
Thx udog für das Bild.
TV: Sony Bravia KDL-46HX755, Sony Bravia KDL-40W4500 (old)
Boxen mit NMP: 7x UFS910 (128MB), UFS912, 2x UFS913, AV700, AV7000, AV7500 (DVB-S/C/T), Edision Argus Pingulux, Vizyon820HD,
3x AX 4K HD51 (E2-OATV, NMP-DDT, DVB-S/SX/C/T), VU+DUO (E2-OATV), VU+Solo4K (DVB-S (FBC)/C/T (DUAL))

Benutzeravatar
mohasoli
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 59
Registriert: Sa 10. Feb 2018, 16:37
Hat sich bedankt: 17 Mal
Danksagung erhalten: 8 Mal

Re: BP-Neutrino image arabic language

#56

Beitrag von mohasoli » Di 27. Feb 2018, 10:12

BPanther hat geschrieben:
Mo 26. Feb 2018, 22:05
As I trying to write, this is currently not possible. Nothing in neutrino can switch the direction for the input fields, and I can't do this - sorry. I will check in the keyboard (see picture if correct) to the GIT, but deactivated until a change for the font direction is done.

New picture added...
screenshot_26-02-18.png
Here is a code to convert the direction of writing by language in PHP

Code: Alles auswählen

if ($lang == "ar")
{
$dir="rtl";
}
elseif($lang == "en")
{
$dir="ltr";
} 
Bild

Benutzeravatar
mohasoli
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 59
Registriert: Sa 10. Feb 2018, 16:37
Hat sich bedankt: 17 Mal
Danksagung erhalten: 8 Mal

Re: BP-Neutrino image arabic language

#57

Beitrag von mohasoli » Di 27. Feb 2018, 10:17

BPanther hat geschrieben:
Mo 26. Feb 2018, 22:05
As I trying to write, this is currently not possible. Nothing in neutrino can switch the direction for the input fields, and I can't do this - sorry. I will check in the keyboard (see picture if correct) to the GIT, but deactivated until a change for the font direction is done.

New picture added...
screenshot_26-02-18.png
OK
Is it possible to send me the file that is being modified to show the Arabic keyboard to try to reach a solution to the problem
Where I have medium experience in languages PHP and HTML
Bild

Benutzeravatar
BPanther
Administrator
Administrator
Beiträge: 10394
Registriert: Do 11. Jan 2007, 00:06
Wohnort: Berlin
Hat sich bedankt: 141 Mal
Danksagung erhalten: 188 Mal
Kontaktdaten:

Re: BP-Neutrino image arabic language

#58

Beitrag von BPanther » Di 27. Feb 2018, 13:25

The keyboard is at the GIT ( https://github.com/Duckbox-Developers?tab=repositories ), so you can build neutrino and activate this here https://github.com/Duckbox-Developers/n ... ut.cpp#L91 and here https://github.com/Duckbox-Developers/n ... t.cpp#L113 (set #if 0 to #if 1). I know the html or php rtl/ltr function, but not usable at c++. :(
MfG BPanther
KEIN SUPPORT PER PN -> Bitte das Forum nutzen und das Wiki lesen.


Bild Bild
Thx udog für das Bild.
TV: Sony Bravia KDL-46HX755, Sony Bravia KDL-40W4500 (old)
Boxen mit NMP: 7x UFS910 (128MB), UFS912, 2x UFS913, AV700, AV7000, AV7500 (DVB-S/C/T), Edision Argus Pingulux, Vizyon820HD,
3x AX 4K HD51 (E2-OATV, NMP-DDT, DVB-S/SX/C/T), VU+DUO (E2-OATV), VU+Solo4K (DVB-S (FBC)/C/T (DUAL))

thomas
Registrierte Benutzer
Registrierte Benutzer
Beiträge: 283
Registriert: Mo 13. Feb 2012, 18:35
Hat sich bedankt: 59 Mal
Danksagung erhalten: 24 Mal

Re: BP-Neutrino image arabic language

#59

Beitrag von thomas » Mi 28. Feb 2018, 10:07

ist bei mohousch das auch so das er von links nach rechts eingeben muss ?
im nhd2 ist doch vermutlich das drin

Benutzeravatar
TangoCash
Moderator
Moderator
Beiträge: 562
Registriert: Di 19. Jul 2011, 22:13
Hat sich bedankt: 4 Mal
Danksagung erhalten: 10 Mal

Re: BP-Neutrino image arabic language

#60

Beitrag von TangoCash » Mi 28. Feb 2018, 14:14

Und wenn man die RTL-mark von Hand setzt, also für die einzelnen chars ?
z.B.:

Code: Alles auswählen

"\u200Eخ"
a.k.a. DaHooD

Es gibt genau 10 Sorten von Leuten – nämlich diejenigen, die das binäre System verstehen, und diejenigen, die es nicht tun.

2B || !2B

4x Mutant HD51
1x WWIO Bre2ze 4k
1x Mutant HD60 (comming soon)

Antworten

Zurück zu „Edision Argus Pingulux (NICHT PLUS)“