with i18n hacks
Peng Wu
Presented by
Red Hat
License statement goes here. See https://fedoraproject.org/wiki/Licensing#Content_Licenses for acceptable licenses.
Wayland intro
Today's Topics
1. X Window Background
2. Wayland intro
3. Wayland with input method frameworks
4. Wayland i18n hacks
5. Summary
X Window
Background
X originated at the MIT in 1984
Since then, never touched the core protocol
X Window History
parts of the core protocol seldom used today
X11 core graphics functionality seldom used
XIM protocol bypassed by input method
frameworks, such as ibus, scim, fcitx.
Why not X?
clients render locally
clients tell the X server what they've drawn
the server asks the WM to display it
the window manager decides what to draw
and where
the X server displays what the WM rendered
So, the window manager is the new X server
Client Rendering Steps
Wayland intro
Wayland - Wayland Compositor Infrastructure
Weston - The Weston Wayland Compositor
libinput - input device management and event
handling library
Wayland dissected
RPC mechanism designed for window system
Utility functions for client/server development
Generate codes from XML protocol definition
some client/server codes for communicating with
the display server.
Define the core wayland protocol
in protocol/wayland.xml
Wayland intro
The Reference Wayland Compositor
Reference Implementation
Support additionally protocols
in weston/protocol
Maybe we could call these as extensions?
For input method support
See text.xml and input-method.xml
Weston display server
clients render locally
clients tell the server what they've drawn
the server decides what to draw and where
So, Wayland just cut out the middle man
Client Rendering Steps
it's tractable
'every frame is perfect'
a set of pixels that should be shown in a window
coherently at one time
Wayland Pros
client says, 'display this'
server displays it
job done.
solely frame-based
Wayland with input
method
frameworks
Bus-Centric Architecture
It has an ibus-daemon, which manages all clients.
all engines, panel, config modules & clients are
clients of ibus-daemon.
iBus is based on dbus IPC protocol.
ibus intro
ibus architecture
ibus
daemon
Application
(GTK+)
Application
(QT)
ibus
XIM Server
ibus
panel UI
ibus
engine pinyin
ibus
engine anthy
ibus
config
XIM protocol is old, and have many problems.
Many GUI ToolKits implement own IMModules
Gtk+ - GtkIMContext
QT – QinputContext
The XIM is by-passed by default configuration.
ibus with X
Proposed architecture
Gtk+ App
Wayland
D-BUS ibus daemon
Every daemon serves one aspect of
functionality.
weston for display
dbus for RPC
ibus for input
Gtk+ Apps talks to the specific daemon only
when needed.
Why not by-pass display server again? ;-)
Advantages
Wayland i18n
hacks
fixes dual-width glyph spaces problem
learned it from vte widget
Fixes cursor problem with vim, emacs
respect the virtual terminal spec
weston terminal hacks
Wayland is wonderful
more works on Wayland i18n supports
input methods
font rendering
Summary
Questions?
License statement goes here. See https://fedoraproject.org/wiki/Licensing#Content_Licenses for acceptable licenses.
example@fedoraproject.org
Contact:

Wayland intro with_i18n_hacks

  • 1.
    with i18n hacks PengWu Presented by Red Hat License statement goes here. See https://fedoraproject.org/wiki/Licensing#Content_Licenses for acceptable licenses. Wayland intro
  • 2.
    Today's Topics 1. XWindow Background 2. Wayland intro 3. Wayland with input method frameworks 4. Wayland i18n hacks 5. Summary
  • 3.
  • 4.
    X originated atthe MIT in 1984 Since then, never touched the core protocol X Window History
  • 5.
    parts of thecore protocol seldom used today X11 core graphics functionality seldom used XIM protocol bypassed by input method frameworks, such as ibus, scim, fcitx. Why not X?
  • 6.
    clients render locally clientstell the X server what they've drawn the server asks the WM to display it the window manager decides what to draw and where the X server displays what the WM rendered So, the window manager is the new X server Client Rendering Steps
  • 7.
  • 8.
    Wayland - WaylandCompositor Infrastructure Weston - The Weston Wayland Compositor libinput - input device management and event handling library Wayland dissected
  • 9.
    RPC mechanism designedfor window system Utility functions for client/server development Generate codes from XML protocol definition some client/server codes for communicating with the display server. Define the core wayland protocol in protocol/wayland.xml Wayland intro
  • 10.
    The Reference WaylandCompositor Reference Implementation Support additionally protocols in weston/protocol Maybe we could call these as extensions? For input method support See text.xml and input-method.xml Weston display server
  • 11.
    clients render locally clientstell the server what they've drawn the server decides what to draw and where So, Wayland just cut out the middle man Client Rendering Steps
  • 12.
    it's tractable 'every frameis perfect' a set of pixels that should be shown in a window coherently at one time Wayland Pros
  • 13.
    client says, 'displaythis' server displays it job done. solely frame-based
  • 14.
  • 15.
    Bus-Centric Architecture It hasan ibus-daemon, which manages all clients. all engines, panel, config modules & clients are clients of ibus-daemon. iBus is based on dbus IPC protocol. ibus intro
  • 16.
  • 17.
    XIM protocol isold, and have many problems. Many GUI ToolKits implement own IMModules Gtk+ - GtkIMContext QT – QinputContext The XIM is by-passed by default configuration. ibus with X
  • 18.
  • 19.
    Every daemon servesone aspect of functionality. weston for display dbus for RPC ibus for input Gtk+ Apps talks to the specific daemon only when needed. Why not by-pass display server again? ;-) Advantages
  • 20.
  • 21.
    fixes dual-width glyphspaces problem learned it from vte widget Fixes cursor problem with vim, emacs respect the virtual terminal spec weston terminal hacks
  • 22.
    Wayland is wonderful moreworks on Wayland i18n supports input methods font rendering Summary
  • 23.
    Questions? License statement goeshere. See https://fedoraproject.org/wiki/Licensing#Content_Licenses for acceptable licenses. example@fedoraproject.org Contact: