Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BiDi support and Farsi language #236

Open
wants to merge 17 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .doozer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"submodules": ["ext/libav", "ext/vmir", "ext/rtmpdump", "ext/gumbo-parser"],
"submodules": ["ext/libav", "ext/fribidi", "ext/vmir", "ext/rtmpdump", "ext/gumbo-parser"],
"targets": {
"android": {
"buildenv": "docker:andoma/movian-android",
Expand Down Expand Up @@ -35,6 +35,11 @@
"git",
"build-essential",
"pkg-config",
"autoconf",
"automake",
"bison",
"flex",
"libtool",
"libfreetype6-dev",
"libfontconfig1-dev",
"libx11-dev",
Expand Down Expand Up @@ -64,6 +69,11 @@
"git",
"build-essential",
"pkg-config",
"autoconf",
"bison",
"flex",
"libtool",
"automake",
"libfreetype6-dev",
"libfontconfig1-dev",
"libx11-dev",
Expand Down
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,9 @@
[submodule "ext/vmir"]
path = ext/vmir
url = https://github.com/andoma/vmir
[submodule "ext/fribidi"]
path = ext/fribidi
url = https://github.com/Mashatan/fribidi.git
[submodule "android"]
path = android
url = [email protected]:movian-android.git
9 changes: 6 additions & 3 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,19 @@ Movian mediaplayer

[![Build status](https://doozer.io/badge/andoma/movian/buildstatus/master)](https://doozer.io/user/andoma/movian)

For more information and latest versions, please visit:
For more information and latest versions, please visit: [https://movian.tv/](https://movian.tv/)

with BiDi support for Farsi and Arabic languages
Vazir-Font for Farsi and Arabic support, https://github.com/rastikerdar/vazir-font

[https://movian.tv/](https://movian.tv/)

## How to build for Linux

First you need to satisfy some dependencies:
For Ubuntu 12.04)

sudo apt-get install libfreetype6-dev libfontconfig1-dev libxext-dev libgl1-mesa-dev libasound2-dev libasound2-dev libgtk2.0-dev libxss-dev libxxf86vm-dev libxv-dev libvdpau-dev yasm libpulse-dev libssl-dev curl libwebkitgtk-dev libsqlite3-dev
sudo apt-get install libfreetype6-dev libfontconfig1-dev libxext-dev libgl1-mesa-dev libasound2-dev libasound2-dev libgtk2.0-dev libxss-dev libxxf86vm-dev libxv-dev libvdpau-dev yasm libpulse-dev libssl-dev curl libwebkitgtk-dev libsqlite3-dev ccache


Then you need to configure:

Expand Down
2 changes: 1 addition & 1 deletion configure.linux
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ enable realpath
enable webkit
enable librtmp
enable vmir
enable fribidi

#enable airplay -- not functional yet
#enable libxrandr -- code does not really work yet
Expand Down Expand Up @@ -562,7 +563,6 @@ if enabled nvctrl; then
echo >>${CONFIG_MAK} "LDFLAGS_cfg += -lXNVCtrl"
fi


#
# Check for valgrind include files
#
Expand Down
7 changes: 5 additions & 2 deletions configure.ps3
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ enable sqlite_locking
enable tlsf
enable webpopup
enable libntfs

enable fribidi

show_help(){
common_help
Expand All @@ -63,7 +63,10 @@ done

setup_env "$@"


if enabled fribidi; then
FRIBIDI_COMMON_FLAGS="--host=powerpc"
mkdir -p ${BUILDDIR}/fribidi
fi
mkdir -p ${BUILDDIR}/libav
${PS3DEV}/host/ppu/bin/ppu-gcc -c -o ${BUILDDIR}/libav/mallocstub.o ${TOPDIR}/support/mallocstub.c
LIBAV_LDFLAGS="${BUILDDIR}/libav/mallocstub.o -B${PS3DEV}/host/ppu/lib"
Expand Down
6 changes: 6 additions & 0 deletions configure.rpi
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ enable libcec
enable avahi
enable connman
enable vmir
enable fribidi

show_help(){
common_help
Expand Down Expand Up @@ -57,6 +58,11 @@ LIBAV_CFLAGS="-I${EXT_INSTALL_DIR}/include"
LIBAV_LDFLAGS="-L${EXT_INSTALL_DIR}/lib"
LIBAV_ARCH_FLAGS="--cross-prefix=${TOOLCHAIN} --enable-cross-compile --arch=arm --target-os=linux"

if enabled fribidi; then
FRIBIDI_COMMON_FLAGS="--host=arm-linux"
mkdir -p ${BUILDDIR}/fribidi
fi

if [ -n "$SYSROOT" ]; then
echo >>${CONFIG_MAK} "LDFLAGS_cfg += --sysroot=$SYSROOT"
echo >>${CONFIG_MAK} "CFLAGS_cfg += --sysroot=$SYSROOT"
Expand Down
1 change: 1 addition & 0 deletions ext/fribidi
Submodule fribidi added at 82b4ae
3 changes: 3 additions & 0 deletions ext/fribidi.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build:
${MAKE} -C ${BUILDDIR}/fribidi/build
${MAKE} -C ${BUILDDIR}/fribidi/build install
2 changes: 1 addition & 1 deletion glwskins/flat/log.view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ widget(container_z, {
cloner($core.logbuffer, label, {
caption: $self.prefix + $self.message;
ellipsize: true;
font: "dataroot://res/fonts/UbuntuMono-Regular.ttf";
font: "dataroot://res/fonts/Vazir.ttf";
size: 0.8em;

color: translate($self.severity, [1,1,1],
Expand Down
2 changes: 1 addition & 1 deletion glwskins/old/universe.view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
setDefaultFont($core.fonts.main);
$ui.monofont = "dataroot://res/fonts/UbuntuMono-Regular.ttf";
$ui.monofont = "dataroot://res/fonts/Vazir.ttf";
$ui.condensedfont = $core.fonts.condensed ??
"skin://fonts/OpenSans-CondBold.ttf";
$ui.background = "skin://graphics/background.jpg";
Expand Down
Loading